Juliangruber brace-expansion
brace-expansion through 5.0.6 is vulnerable to denial of service. The expand() function exhibits exponential-time complexity in the number of consecutive non-expanding '{}' brace groups. An attacker who passes a crafted string to expand(), directly or transitively, can cause significant CPU consumption and event-loop blocking. The max option does not mitigate this, as it bounds the output size rather than the recursion work.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- <= 5.0.6
- >= 3.0.0, < 5.0.7
Fixed in 5.0.7
from GitHub Security Advisory GHSA-3jxr-9vmj-r5cp
- >= 2.0.0, < 2.1.2
Fixed in 2.1.2
from GitHub Security Advisory GHSA-3jxr-9vmj-r5cp
Mitigation
Upgrade brace-expansion to 5.0.7 or later.
Upgrade brace-expansion to 1.1.16 or later.
Upgrade brace-expansion to 2.1.2 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.