CVE-2026-13149 Details
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.
A denial-of-service vulnerability has been identified in the Brace Expansion library, affecting versions through 5.0.6. The issue arises in the expand() function, which has exponential-time complexity when processing consecutive non-expanding brace groups. An attacker can exploit this vulnerability by sending a crafted string to the expand() function, either directly or indirectly, leading to excessive CPU usage and blocking of the event loop. Notably, the 'max' option does not alleviate the problem, as it only limits the output size rather than the recursive processing time.
Users are advised to update to Brace Expansion version 5.0.7, which addresses the denial-of-service vulnerability by modifying the expand() function to prevent unbounded recursion.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 30, 2026CISA-ADP
Assessed Jun 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/juliangruber/brace-expansion/commit/c7e33ec13ac1a684c116720843ce24e208611754 | seal | Source CodeVendor |
| https://www.npmjs.com/package/brace-expansion | seal | Permission RequiredProduct |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | seal |
| CWE-407 | Inefficient Algorithmic Complexity | seal |
Affected Products
| Product | Versions |
|---|---|
| brace-expansion | <= 5.0.6 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jul 8, 2026 | CVE Modified | seal |
| Jun 30, 2026 | CVE Modified | CISA-ADP |
| Jun 30, 2026 | New CVE Received | seal |
Volerion