Vulnerability · Published Jul 1, 2023 · Assigned by snyk
CVE-2023-26136
Medium 6.5
In plain English
A medium-severity prototype pollution in tough-cookie. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.6% (higher than 86% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)2.6%top 14.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC
Official description
Versions of the package tough-cookie before 4.1.3 are vulnerable to Prototype Pollution due to improper handling of Cookies when using CookieJar in rejectPublicSuffixes=false mode. This issue arises from the manner in which the objects are initialized.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-tough-cookie | 4.0.0-2+deb12u1 | DEBIAN-CVE-2023-26136 |
| Debian:13 | node-tough-cookie | 4.1.3+~4.0.2-1 | DEBIAN-CVE-2023-26136 |
| Debian:14 | node-tough-cookie | 4.1.3+~4.0.2-1 | DEBIAN-CVE-2023-26136 |
| Ubuntu:22.04:LTS | node-tough-cookie | no fix listed | UBUNTU-CVE-2023-26136 |
| Ubuntu:24.04:LTS | node-tough-cookie | no fix listed | UBUNTU-CVE-2023-26136 |
| npm | tough-cookie | 4.1.3 | GHSA-72xf-g2v4-qvf3 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | tough-cookie | 0 – before 4.1.3 |
Weakness: CWE-1321 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N/E:P
References
- https://security.snyk.io/vuln/SNYK-JS-TOUGHCOOKIE-5672873
- https://github.com/salesforce/tough-cookie/issues/282
- https://github.com/salesforce/tough-cookie/commit/12d474791bb856004e858fdb1c47b7608d09cf6e
- https://github.com/salesforce/tough-cookie/releases/tag/v4.1.3
- https://lists.debian.org/debian-lts-announce/2023/07/msg00010.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6PVVPNSAGSDS63HQ74PJ7MZ3MU5IYNVZ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3HUE6ZR5SL73KHL7XUPAOEL6SB7HUDT2/
- https://security.netapp.com/advisory/ntap-20240621-0006/