Packages / tough-cookie / Security

ModerateVulnerabilityGHSA-72xf-g2v4-qvf3CVE-2023-26136Published 1 Jul 2023

tough-cookie Prototype Pollution vulnerability

Your version

Affected releases · tough-cookie

  • 4.x4.0.0 – 4.1.2Fixed in 4.1.3
  • 3.x and older0.9.0 – 3.0.1No 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.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.