brace-expansion: DoS via unbounded intermediate arrays, bypassing the CVE-2026-14257 mitigation
juliangruber brace-expansion
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| brace-expansion npm |
|
|
juliangruber brace-expansion
| Product | Affected | Fixed in |
|---|---|---|
| brace-expansion npm |
|
|
The brace-expansion library generates arbitrary strings containing a common prefix and suffix. Prior to 1.1.18, 2.1.4, 3.0.6, and 5.0.9, expand() does not apply maxLength while constructing comma-alternative intermediate arrays or padded sequences, allowing attacker-controlled input to exhaust memory or block the event loop. The fix for CVE-2026-14257 is bypassed by the vulnerability. This issue is fixed in versions 1.1.18, 2.1.4, 3.0.6, and 5.0.9.
From the CVE record · GitHub_M
The npm brace-expansion package does not enforce maxLength while expand() constructs comma-alternative intermediate arrays or padded sequences. If attacker-controlled input reaches expand(), it can exhaust memory or block the event loop, bypassing the fix for CVE-2026-14257.
Engineers using npm brace-expansion versions below 1.1.18, 2.0.0 through 2.1.3, 3.0.0 through 3.0.5, or 4.0.0 through 5.0.8 should check their dependencies.