---
title: "GHSA-72xf-g2v4-qvf3: tough-cookie Prototype Pollution vulnerability"
description: "Moderate severity. tough-cookie Prototype Pollution vulnerability. Affects tough-cookie; fixed in 4.1.3."
url: https://inlinr.com/advisories/GHSA-72xf-g2v4-qvf3
lang: en
---

[Packages](https://inlinr.com/packages) / [tough-cookie](https://inlinr.com/packages/tough-cookie) / [Security](https://inlinr.com/packages/tough-cookie/security)

Moderate Vulnerability GHSA-72xf-g2v4-qvf3 CVE-2023-26136 Published 1 Jul 2023

# tough-cookie Prototype Pollution vulnerability

Your version 

Affected releases · [tough-cookie](https://inlinr.com/packages/tough-cookie)

- 4.x 4.0.0 – 4.1.2 Fixed in 4.1.3
- 3.x and older 0.9.0 – 3.0.1 No fix, no longer updated

On 4.x, the newest line:

```
npm install tough-cookie@4.1.3
```

Every release on a timeline

6.x 

1. Not affected

6.0.0 – 6.1.0  
4 releases, latest

4.x 

1. Affected

4.0.0 – 4.1.2  
4 releases
2. Fixed

4.1.3 – 4.1.4  
2 releases

3.x 

1. Affected

3.0.0 – 3.0.1  
2 releases

2.x 

1. Affected

2.0.0 – 2.5.0  
13 releases

1.x 

1. Affected

1.0.0 – 1.2.0  
3 releases

0.x 

1. Affected

0.9.0 – 0.13.0  
19 releases

51 stable releases of tough-cookie, oldest to newest, one row per major.

## What happens

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.

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: low
- **Integrity**: low
- **Availability**: none

CVSS:3.1/​AV:N/​AC:L/​PR:N/​UI:N/​S:U/​C:L/​I:L/​A:N

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2023-26136 "https://nvd.nist.gov/vuln/detail/CVE-2023-26136")  
nvd.nist.gov/vuln/detail/CVE-2023-26136
- [Issue](https://github.com/salesforce/tough-cookie/issues/282 "https://github.com/salesforce/tough-cookie/issues/282")  
#282
- [Fix commit](https://github.com/salesforce/tough-cookie/commit/12d474791bb856004e858fdb1c47b7608d09cf6e "https://github.com/salesforce/tough-cookie/commit/12d474791bb856004e858fdb1c47b7608d09cf6e")  
12d4747
- [Package](https://github.com/salesforce/tough-cookie "https://github.com/salesforce/tough-cookie")  
github.com/salesforce/tough-cookie
- [Reference](https://github.com/salesforce/tough-cookie/releases/tag/v4.1.3 "https://github.com/salesforce/tough-cookie/releases/tag/v4.1.3")  
github.com/salesforce/tough-cookie/releases/tag…
- [Reference](https://lists.debian.org/debian-lts-announce/2023/07/msg00010.html "https://lists.debian.org/debian-lts-announce/2023/07/msg00010.html")  
lists.debian.org/debian-lts-announce/2023/07/ms…
- [Reference](https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3HUE6ZR5SL73KHL7XUPAOEL6SB7HUDT2 "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3HUE6ZR5SL73KHL7XUPAOEL6SB7HUDT2")  
lists.fedoraproject.org/archives/list/package-a…
- [Reference](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/6PVVPNSAGSDS63HQ74PJ7MZ3MU5IYNVZ")  
lists.fedoraproject.org/archives/list/package-a…
- [Reference](https://security.netapp.com/advisory/ntap-20240621-0006 "https://security.netapp.com/advisory/ntap-20240621-0006")  
security.netapp.com/advisory/ntap-20240621-0006
- [Reference](https://security.snyk.io/vuln/SNYK-JS-TOUGHCOOKIE-5672873 "https://security.snyk.io/vuln/SNYK-JS-TOUGHCOOKIE-5672873")  
security.snyk.io/vuln/SNYK-JS-TOUGHCOOKIE-56728…

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
