CVE-2026-13149: CWE-400 Uncontrolled Resource Consumption in 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.
AI Analysis
Technical Summary
CVE-2026-13149 describes a denial of service vulnerability in the juliangruber brace-expansion library through version 5.0.6. The vulnerability arises from the expand() function's exponential-time complexity in handling consecutive non-expanding '{}' brace groups. An attacker can exploit this by passing a crafted string to expand(), either directly or indirectly, leading to significant CPU consumption and blocking of the event loop. The max option, which bounds output size, does not mitigate the underlying recursion and CPU usage problem. This vulnerability is categorized under CWE-400 (Uncontrolled Resource Consumption).
Potential Impact
Successful exploitation results in denial of service by causing excessive CPU consumption and event-loop blocking, potentially degrading or halting application functionality that relies on the brace-expansion library. There is no indication of privilege escalation, data disclosure, or other impacts beyond resource exhaustion.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround is currently documented. Users should monitor the vendor's communications for updates and consider limiting or sanitizing input to the expand() function to avoid triggering the vulnerability until a patch is available.
CVE-2026-13149: CWE-400 Uncontrolled Resource Consumption in juliangruber brace-expansion
Description
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.
CVSS v4.0
Score 7.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-13149 describes a denial of service vulnerability in the juliangruber brace-expansion library through version 5.0.6. The vulnerability arises from the expand() function's exponential-time complexity in handling consecutive non-expanding '{}' brace groups. An attacker can exploit this by passing a crafted string to expand(), either directly or indirectly, leading to significant CPU consumption and blocking of the event loop. The max option, which bounds output size, does not mitigate the underlying recursion and CPU usage problem. This vulnerability is categorized under CWE-400 (Uncontrolled Resource Consumption).
Potential Impact
Successful exploitation results in denial of service by causing excessive CPU consumption and event-loop blocking, potentially degrading or halting application functionality that relies on the brace-expansion library. There is no indication of privilege escalation, data disclosure, or other impacts beyond resource exhaustion.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround is currently documented. Users should monitor the vendor's communications for updates and consider limiting or sanitizing input to the expand() function to avoid triggering the vulnerability until a patch is available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- seal
- Date Reserved
- 2026-06-24T10:17:07.027Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4391c127e9c7971986645c
Added to database: 06/30/2026, 09:52:01 UTC
Last enriched: 07/15/2026, 12:23:13 UTC
Last updated: 08/13/2026, 15:16:13 UTC
Views: 157
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.