brace-expansion is vulnerable to Denial of Service (DoS)
53
Medium Risk
The brace expansion parser rewrites and rescans its input whenever it matches a trailing {group},b} pattern, restarting the scan without limiting how many times this can happen. A crafted input such as {a} followed by many closing braces triggers thousands of rescans over a string that grows on each pass, driving CPU use to quadratic growth and blocking the event loop for tens of seconds on a single call. The patch adds a maxRewrites bound that caps the number of rescans.
You are affected if you are using a version that falls within the vulnerable range.
brace-expansion is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 1.1.20, 2.0.0 - 2.1.6, 3.0.0 - 3.0.8 and 4.0.0 - 5.0.11.
Upgrade the brace-expansion library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

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.