CVE-2026-13149: Algorithmic Complexity Denial of Service in brace-expansion
CVE-2026-13149 is an algorithmic complexity vulnerability in the brace-expansion package's expand() function. Crafted expressions containing consecutive non-expanding '{}' groups trigger exponential recursive processing, allowing small inputs to consume excessive CPU and block the Node.js event loop. The max option limits output size rather than recursion work and therefore does not prevent exploitation. Patched releases are available as versions 1.1.16, 2.1.2, and 5.0.7 for the corresponding release branches.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Processing a small attacker-controlled expression can stall the calling thread or process for minutes or effectively indefinitely. In Node.js services, event-loop blocking can prevent unrelated requests and application tasks from completing, causing denial of service. No confidentiality or integrity impact is established.
Mitigation
If you can’t patch tonight, do this now.
Avoid passing untrusted strings to expand() or transitive brace-expansion consumers such as minimatch and glob. Reject or constrain expressions containing repeated non-expanding brace groups. If untrusted expansion is unavoidable, isolate it in a worker or separate process with an externally enforced execution deadline and termination capability. Request-size and rate limits can reduce exposure but are insufficient alone because small inputs can trigger expensive processing. The max option is not an effective mitigation.
Remediation
Patch, then assume compromise.
Upgrade brace-expansion to the patched release for the applicable branch: 1.1.16, 2.1.2, or 5.0.7, or a subsequent fixed release. Update transitive dependency resolutions as necessary to eliminate vulnerable bundled copies. For vendor-packaged applications and operating-system packages, install the applicable vendor security update containing the corrected dependency or backported fix.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Frequently asked questions
- Is CVE-2026-13149 exploited in the wild?
- As of Nov 2, 2026, Mallory has no reports of CVE-2026-13149 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-13149?
- As of Nov 2, 2026, Mallory has found no public exploit for CVE-2026-13149.
- Is there a patch for CVE-2026-13149?
- Upgrade brace-expansion to the patched release for the applicable branch: 1.1.16, 2.1.2, or 5.0.7, or a subsequent fixed release. Update transitive dependency resolutions as necessary to eliminate vulnerable bundled copies.
- How severe is CVE-2026-13149?
- CVE-2026-13149 has a CVSS v4 score of 7.7 (High) and an EPSS score of 0.36% (31st percentile) as of Nov 2, 2026.
Recent activity
37 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.