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.
Attack Parameters
Impact Assessment
CVSS Vector v3.1
Weakness Type (CWE)
Vulnerable Products 4
| Configuration | From (including) | Up to (excluding) |
|---|---|---|
|
Juliangruber Brace-Expansion
cpe:2.3:a:juliangruber:brace-expansion:*:*:*:*:*:node.js:*:*
|
— |
1.1.18
|
|
Juliangruber Brace-Expansion
cpe:2.3:a:juliangruber:brace-expansion:*:*:*:*:*:node.js:*:*
|
2.0.0
|
2.1.4
|
|
Juliangruber Brace-Expansion
cpe:2.3:a:juliangruber:brace-expansion:*:*:*:*:*:node.js:*:*
|
3.0.0
|
3.0.6
|
|
Juliangruber Brace-Expansion
cpe:2.3:a:juliangruber:brace-expansion:*:*:*:*:*:node.js:*:*
|
4.0.0
|
5.0.9
|