brace-expansion is vulnerable to Denial of Service (DoS)
75
CVE Score
High
Denial of Service (DoS)
The expand() function limits the size of the accumulator where results are combined but leaves the intermediate arrays built before that step unbounded. Comma alternatives are concatenated into one array with no cumulative result or character limit, and padded numeric sequence generation ignores the length limit while materializing wide elements. A small crafted string passed to expand(), directly or through a glob or brace-pattern matching library, exhausts process memory with an uncatchable out-of-memory crash or blocks the event loop for minutes. The fix bounds both intermediate arrays as they are built and truncates output once the result count or character limits are reached.
Upgrade the brace-expansion library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you pass user-controlled input to expand(), directly or transitively through a glob or brace-pattern matching library.
0.0.1 - 1.1.17
Fixed in 1.1.182.0.0 - 2.1.3
Fixed in 2.1.43.0.0 - 3.0.5
Fixed in 3.0.64.0.0 - 5.0.8
Fixed in 5.0.9brace-expansion is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 1.1.17, 2.0.0 - 2.1.3, 3.0.0 - 3.0.5 and 4.0.0 - 5.0.8.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.