GitHub Advisoryadvisory · npm
GHSA-g7q5-pjjr-gqvp Regular Expression Denial of Service in tough-cookie
HIGH
Official page ↗
- Aliases
- CVE-2017-15010
- Ecosystem
- npm
- Packages
- tough-cookie
- Severity
- High
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-400
- Reviewed
- 2020-06-16
Affected packages
• npm tough-cookie: < 2.3.3 → fixed in 2.3.3
Description
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 `-DHTTP_MAX_HEADER_SIZE` 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.
Related
Alias · CVE (1)
- CVE-2017-15010 A ReDoS (regular expression denial of service) flaw was found in the tough-cookie module before 2.3.3 for Node.js. vulnerability
Weakness · CWE (1)
- CWE-400 Uncontrolled Resource Consumption weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-15010 advisory
- https://github.com/salesforce/tough-cookie/issues/92 web
- https://github.com/salesforce/tough-cookie/commit/f1ed420a6a92ea7a5418df6e39e676556bc0c71d web
- https://access.redhat.com/errata/RHSA-2017:2912 web
- https://access.redhat.com/errata/RHSA-2017:2913 web
- https://access.redhat.com/errata/RHSA-2018:1263 web
- https://access.redhat.com/errata/RHSA-2018:1264 web
- https://github.com/advisories/GHSA-g7q5-pjjr-gqvp advisory
- https://github.com/salesforce/tough-cookie package
- https://lists.fedoraproject.org/archives/list/[email protected]/message/6VEBDTGNHVM677SLZDEHMWOP3ISMZSFT web
- https://snyk.io/vuln/npm:tough-cookie:20170905 web
- https://www.npmjs.com/advisories/525 web
- http://www.securityfocus.com/bid/101185 web