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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | tough-cookie | < 4.1.3 | 4.1.3 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-tough-cookie | 4.1.3+~4.0.2-1 | — |
| Debian 13 | node-tough-cookie | 4.1.3+~4.0.2-1 | — |
| Debian 12 | node-tough-cookie | 4.0.0-2+deb12u1 | — |
| Debian 10 | node-tough-cookie | 2.3.4+dfsg-1+deb10u1 | DLA-3488-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | node-tough-cookie | No fix yet | — |
| Ubuntu 20.04 LTS | node-tough-cookie | No fix yet | — |
| Ubuntu 18.04 LTS | node-tough-cookie | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat JBoss EAP 7 | eap7-activemq-artemis +15 | 2.16.0-15.redhat_00049.1.el7eap | RHSA-2023:5486, RHSA-2023:5485, RHSA-2023:5484 |
| Red Hat JBoss EAP 7 | eap7-bouncycastle +5 | 1.76.0-4.redhat_00001.1.el7eap | RHSA-2023:5486, RHSA-2023:5485, RHSA-2023:5484 |
| Red Hat JBoss EAP 7 | eap7-hal-console | 3.3.19-1.Final_redhat_00001.1.el7eap | RHSA-2023:5486, RHSA-2023:5485, RHSA-2023:5484 |
| Red Hat JBoss EAP 7 | eap7-hibernate +4 | 5.3.31-1.Final_redhat_00001.1.el7eap | RHSA-2023:5486, RHSA-2023:5485, RHSA-2023:5484 |
| Red Hat JBoss EAP 7 | eap7-ironjacamar +8 | 1.5.15-1.Final_redhat_00001.1.el7eap | RHSA-2023:5486, RHSA-2023:5485, RHSA-2023:5484 |
| Red Hat JBoss EAP 7 | eap7-jboss-marshalling +1 | 2.0.13-2.SP1_redhat_00001.1.el7eap | RHSA-2023:5486, RHSA-2023:5485, RHSA-2023:5484 |
| Red Hat JBoss EAP 7 | eap7-jboss-modules | 1.12.2-1.Final_redhat_00001.1.el7eap | RHSA-2023:5486, RHSA-2023:5485, RHSA-2023:5484 |
| Red Hat JBoss EAP 7 | eap7-jboss-server-migration +2 | 1.10.0-31.Final_redhat_00030.1.el7eap | RHSA-2023:5486, RHSA-2023:5485, RHSA-2023:5484 |
| Red Hat JBoss EAP 7 | eap7-jboss-xnio-base | 3.8.10-1.Final_redhat_00001.1.el7eap | RHSA-2023:5486, RHSA-2023:5485, RHSA-2023:5484 |
| Red Hat JBoss EAP 7 | eap7-mod_cluster | 1.4.5-1.Final_redhat_00001.1.el7eap | RHSA-2023:5486, RHSA-2023:5485, RHSA-2023:5484 |
| Red Hat JBoss EAP 7 | eap7-netty +28 | 4.1.94-1.Final_redhat_00001.1.el7eap | RHSA-2023:5486, RHSA-2023:5485, RHSA-2023:5484 |
| Red Hat JBoss EAP 7 | eap7-resteasy +18 | 3.15.8-1.Final_redhat_00001.1.el7eap | RHSA-2023:5486, RHSA-2023:5485, RHSA-2023:5484 |
| Red Hat JBoss EAP 7 | eap7-undertow | 2.2.26-1.SP1_redhat_00001.1.el7eap | RHSA-2023:5486, RHSA-2023:5485, RHSA-2023:5484 |
| Red Hat JBoss EAP 7 | eap7-wildfly +4 | 7.4.13-8.GA_redhat_00001.1.el7eap | RHSA-2023:5486, RHSA-2023:5485, RHSA-2023:5484 |
| Red Hat JBoss EAP 7 | eap7-wildfly-elytron +1 | 1.15.20-1.Final_redhat_00001.1.el7eap | RHSA-2023:5486, RHSA-2023:5485, RHSA-2023:5484 |
| Red Hat JBoss EAP 7 | eap7-wildfly-java-jdk17 | 7.4.13-8.GA_redhat_00001.1.el8eap | RHSA-2023:5486, RHSA-2023:5485 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | js-jquery | No fix yet | — |
| Azure Linux 2 (CBL-Mariner) | js-jquery | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | katib-earlystopping +8 | 0.19.0-r31 | — |
| Wolfi rolling | katib-suggestion-goptuna-compat | 0.19.0-r40 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 7 repositories
-
CUCUMBERanOrSNCompany/SealSecurityAssignment ★ 1 · Dec 4, 2023
Researching on the vulnrability CVE-2023-26136
-
guy2610/tough-cookie-patch-cve-2023-26136 ★ 0 · Jul 28, 2025
-
uriyahav/tough-cookie-2.5.0-cve-2023-26136-fix ★ 0 · Jun 18, 2025
ecurity patch for CVE-2023-26136 in tough-cookie 2.5.0 - Prototype pollution vulnerability fix with backward compatibility
-
morrisel/CVE-2023-26136 ★ 0 · Feb 7, 2025
This repository contains a solution for the CVE-2023-26136 vulnerability.
-
dani33339/Tough-Cookie-v2.5.0-Patched ★ 0 · Feb 4, 2025
CVE-2023-26136 vulnerability research
-
m-lito13/SealSecurity_Exam ★ 0 · Sep 2, 2024
Fix prototype pollution vulnerability (CVE-2023-26136) for tough-cookie package
-
ronmadar/Open-Source-Seal-Security ★ 0 · May 6, 2024
Fix open source package uses tough-cookie 2.5.0 - CVE-2023-26136,
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | tough-cookie | < 4.1.3 | 4.1.3 | GHSA-72xf-g2v4-qvf3 |
Advisories 7
- RHSA-2023:5486 Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.13 security update on RHEL 9 Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2023:5484 Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.13 security update on RHEL 7 Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2023:5485 Red Hat Security Advisory: Red Hat JBoss Enterprise Application Platform 7.4.13 security update on RHEL 8 Red Hat Security Advisories (RHSA) · Oct 17, 2026
- DLA-3488-1 node-tough-cookie - security update Debian Security (DSA / DLA) · Mar 9, 2026
- WID-SEC-2026-0180 Dell Data Protection Advisor: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 20, 2026
- WID-SEC-2023-1738 Red Hat OpenShift: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 14, 2025
- ICSA-24-200-02 Subnet Solutions PowerSYSTEM Center CISA ICS & IT advisories · Jul 18, 2024
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/