MediumGHSA-qhv9-728r-6jqgCVE-2016-1000232

ReDoS via long string of semicolons in tough-cookie

Published 10 Oct 2018 · Updated 8 Nov 2023

Affected package

Affected
<2.3.0
Fixed in
2.3.0
Update to the fixed version for your release line, for example:npm install tough-cookie@2.3.0

Details

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.

Is GHSA-qhv9-728r-6jqg in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected tough-cookie, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.