Skip to main content
← All vulnerabilities
CVE-2026-33750GHSA-F886-M6HF-6M8V

brace-expansion: Zero-step sequence causes process hang and memory exhaustion

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.0.5, 3.0.2, 2.0.3, 1.1.13
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

The brace-expansion library generates arbitrary strings containing a common prefix and suffix. Prior to versions 5.0.5, 3.0.2, 2.0.3, and 1.1.13, a brace pattern with a zero step value (e.g., `{1..2..0}`) causes the sequence generation loop to run indefinitely, making the process hang for seconds and allocate heaps of memory. Versions 5.0.5, 3.0.2, 2.0.3, and 1.1.13 fix the issue. As a workaround, sanitize strings passed to `expand()` to ensure a step value of `0` is not used.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • juliangruber brace-expansion

    From 4.0.0 · fixed in 5.0.5; From 3.0.0 · fixed in 3.0.2; From 2.0.0 · fixed in 2.0.3; fixed in 1.1.13

  • brace-expansionnpm

    From 4.0.0 · fixed in 5.0.5

  • brace-expansionnpm

    From 3.0.0 · fixed in 3.0.2

  • brace-expansionnpm

    From 2.0.0 · fixed in 2.0.3

  • brace-expansionnpm

    fixed in 1.1.13

References 10

GitHub · juliangruber/brace-expansion