Skip to main content
← All vulnerabilities
CVE-2026-13149GHSA-3JXR-9VMJ-R5CP

brace-expansion through 5.0.6 is vulnerable to denial of service.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.0.7, 1.1.16, 2.1.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • brace-expansion

    through 5.0.6

  • brace-expansionnpm

    From 3.0.0 · fixed in 5.0.7

  • brace-expansionnpm

    fixed in 1.1.16

  • brace-expansionnpm

    From 2.0.0 · fixed in 2.1.2

References 2

GitHub · juliangruber/brace-expansion

npmjs.com