Skip to content

← Public intelligence

npm package

tough-cookie

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

3 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Medium, CVSS 6.5npmAmendedPublished

    tough-cookie Prototype Pollution vulnerability

    CVE-2023-26136 · GHSA-72xf-g2v4-qvf3

    Affected
    • npm tough-cookie < 4.1.3
    Fixed in
    4.1.3· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 4.1.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. Medium, CVSS 5.3npmAmendedPublished

    ReDoS via long string of semicolons in tough-cookie

    CVE-2016-1000232 · GHSA-qhv9-728r-6jqg

    Affected
    • npm tough-cookie < 2.3.0
    Fixed in
    2.3.0· Vendor fix available
    Issue
    Affected versions of tough-cookie may be vulnerable to regular expression denial of service when long strings of semicolons exist in the Set-Cookie header. Recommendation Update to version 2.3.0 or later.

    Recommended action: Upgrade to 2.3.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. High, CVSS 7.5npmAmendedPublished

    Regular Expression Denial of Service in tough-cookie

    CVE-2017-15010 · GHSA-g7q5-pjjr-gqvp

    Affected
    • npm tough-cookie < 2.3.3
    Fixed in
    2.3.3· Vendor fix available
    Issue
    Affected versions of tough-cookie are susceptible to a regular expression denial of service. The amplification on this vulnerability is relatively low - it takes around 2 seconds for the engine to execute on a malicious input which is 50,000 characters in length. If node was compiled using the -DHTTPMAXHEADERSIZE however, the impact of the vulnerability can be significant, as the primary limitation for the vulnerability is the default max HTTP header length in node. Recommendation Update to version 2.3.3 or later.

    Recommended action: Upgrade to 2.3.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →