Packages / tough-cookie / Security

ModerateVulnerabilityGHSA-qhv9-728r-6jqgCVE-2016-1000232Published 10 Oct 2018

ReDoS via long string of semicolons in tough-cookie

Your version

Affected releases · tough-cookie

  • 2.x2.0.0 – 2.2.2Fixed in 2.3.0
  • 1.x and older0.9.0 – 1.2.0No fix, no longer updated

On 2.x, the newest line:

npm install tough-cookie@2.3.0
Every release on a timeline
6.x
  1. Not affected

    6.0.0 – 6.1.0

    4 releases, latest

2.x
  1. Affected

    2.0.0 – 2.2.2

    5 releases

  2. Fixed

    2.3.0 – 2.5.0

    8 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

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.

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.