CVE-2026-33750GHSA-F886-M6HF-6M8V
brace-expansion: Zero-step sequence causes process hang and memory exhaustion
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.0.5, 3.0.2, 2.0.3, 1.1.13
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
CISA's decision points: whether it is exploited, whether attacks can be automated, and how much control an attacker gets. Assessed (SSVC 2.0.3).What do these mean? →
- 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
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- 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