VDB
Sign up
MEDIUM6.5

GHSA-72xf-g2v4-qvf3

tough-cookie Prototype Pollution vulnerability

Quick fix

GHSA-72xf-g2v4-qvf3 — tough-cookie: upgrade to the fixed version with the command below.

npm install tough-cookie@4.1.3

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/tough-cookie
Introduced in: 0Fixed in: 4.1.3
Fixnpm install tough-cookie@4.1.3

References