CVE-2026-14257
Published:July 23, 2026
Updated:August 06, 2026
brace-expansion through 5.0.7 is vulnerable to denial of service via memory exhaustion. The expand() function limits the number of results with a max option (default 100,000) but does not bound the length of each result string. By chaining multiple brace groups, an attacker keeps the result count under the limit while making each result progressively longer, so total memory scales with both count and string length until the process hits a fatal, uncatchable out-of-memory error. About 7.5 KB of input ('{a,b}'.repeat(1500)) crashes a default Node.js process. Any application that passes attacker-influenced strings to brace-expansion.expand() - directly or transitively via minimatch / glob brace patterns - can be crashed by a small request. Fixed in 5.0.8 by adding a maxLength option (default 4,000,000) that bounds accumulated output and intermediate arrays.
Affected Packages
https://github.com/juliangruber/brace-expansion.git (GITHUB):
Affected version(s) >=v2.0.0 <v2.1.3Fix Suggestion:
Update to version v2.1.3https://github.com/juliangruber/brace-expansion.git (GITHUB):
Affected version(s) >=v3.0.0 <v3.0.3Fix Suggestion:
Update to version v3.0.3https://github.com/juliangruber/brace-expansion.git (GITHUB):
Affected version(s) >=v1.0.0 <v1.1.17Fix Suggestion:
Update to version v1.1.17https://github.com/juliangruber/brace-expansion.git (GITHUB):
Affected version(s) >=v4.0.0 <v5.0.8Fix Suggestion:
Update to version v5.0.8brace-expansion (NPM):
Affected version(s) >=4.0.0 <5.0.8Fix Suggestion:
Update to version 5.0.8brace-expansion (NPM):
Affected version(s) >=0.0.0 <1.1.17Fix Suggestion:
Update to version 1.1.17brace-expansion (NPM):
Affected version(s) >=2.0.0 <2.1.3Fix Suggestion:
Update to version 2.1.3brace-expansion (NPM):
Affected version(s) >=3.0.0 <3.0.3Fix Suggestion:
Update to version 3.0.3Related Resources (12)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
0.34