Packages / brace-expansion / Security
HighVulnerabilityGHSA-832h-xg76-4gv6CVE-2017-18077Published 29 Jan 2018
ReDoS in brace-expansion
Your version
Affected releases · brace-expansion
- 1.x1.0.0 – 1.1.6Fixed in 1.1.7
- 0.0.x0.0.0No fix on this line yet
On 1.x, the newest line:
npm install brace-expansion@1.1.7Every release on a timeline
5.x
Not affected
5.0.2 – 5.0.13
12 releases, latest
1.x
Affected
1.0.0 – 1.1.6
9 releases
Fixed
1.1.7 – 1.1.22
16 releases
0.x
Affected
0.0.0
1 release
What happens
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.
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.