npm package
tough-cookie 2.2.2 vulnerabilities, and the version that fixes all of them
tough-cookie 2.2.2 has 3 known vulnerabilities (1 rated high or critical); 4.1.3 fixes all of them. The maintainers deprecated this release.
npm (opens in a new tab) describes it as “RFC6265 Cookies and Cookie Jar for node.js”
- Known vulnerabilities
- 3
- 1 rated high or critical
- Released
- Mar 9, 2016
- Latest is 6.0.2
- Downloads last week
- 101K
- Under 1% of tough-cookie downloads
- Licence
- BSD-3-Clause
- Dependencies
- None
- Resolved by deps.dev
- Status
- Deprecated release
What to upgrade to
4.1.3 is the closest release with no known vulnerabilities.
Newest 2.x release. Released Nov 26, 2018.
1 known vulnerability, worst rated warning4.1.3Upgrade to this
Fixes all 3 known vulnerabilities. Released Jun 5, 2023.
No known vulnerabilitiesLatest release. Released Jul 7, 2026.
No known vulnerabilities
Hand the fix to your coding agent
One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.
Findings
- CriticalVulnerability
3 known vulnerabilities in tough-cookie 2.2.2
EPSS: top 12%1 rated high or critical. Most serious: CVE-2017-15010, Regular Expression Denial of Service in tough-cookie. Upgrading to 4.1.3 fixes all of them.
- WarningOutdated
tough-cookie 2.2.2 is 4 major versions behind
Latest release is 6.0.2. The maintainers deprecated 2.2.2: "ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130"
Every advisory for tough-cookie 2.2.2
Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.
CriticalCVE-2017-15010 on OSV.dev (opens in a new tab)GHSA-g7q5-pjjr-gqvpEPSS: top 12%
Regular Expression Denial of Service in tough-cookie
Fixed in 2.3.3. Published Jul 24, 2018.
WarningCVE-2023-26136 on OSV.dev (opens in a new tab)GHSA-72xf-g2v4-qvf3EPSS: top 15%
tough-cookie Prototype Pollution vulnerability
Fixed in 4.1.3. Published Jul 1, 2023.
WarningCVE-2016-1000232 on OSV.dev (opens in a new tab)GHSA-qhv9-728r-6jqgEPSS: top 17%
ReDoS via long string of semicolons in tough-cookie
Fixed in 2.3.0. Published Oct 10, 2018.
Who is still on a vulnerable tough-cookie
12% of last week’s 141.2M tough-cookie downloads went to versions with known vulnerabilities.
From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.
Is tough-cookie the only one?
Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.
How this page is checked
StackPrism asks OSV.dev which advisories affect exactly tough-cookie 2.2.2, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.
Last checked against npm, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.