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
tough-cookienpm
- 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.0Details
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
- Advisorynvd.nist.gov/vuln/detail/CVE-2016-1000232
- Linkgithub.com/salesforce/tough-cookie/commit/615627206357d997d5e6ff9da158997de05235ae
- Linkgithub.com/salesforce/tough-cookie/commit/e4fc2e0f9ee1b7a818d68f0ac7ea696f377b1534
- Linkaccess.redhat.com/errata/RHSA-2016:2101
- Linkaccess.redhat.com/errata/RHSA-2017:2912
- Linkaccess.redhat.com/security/cve/cve-2016-1000232
- Advisorygithub.com/advisories/GHSA-qhv9-728r-6jqg
- Packagegithub.com/salesforce/tough-cookie
- Linkwww.ibm.com/blogs/psirt/ibm-security-bulletin-ibm-api-connect-is-affected-by-node-js-tough-cookie-module-vulnerability-to-a-denial-of-service-cve-2016-1000232
- Linkwww.npmjs.com/advisories/130
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.