CVE-2026-14257
NVDCVSS scored by 22e2d327-25fe-45d7-9f0c-dcd23b7108df
Vulnerability Summary
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.
CVSS v3.1 Base Metrics — Score 7.5 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh
Affected & Patched Versions
- Juliangruber Brace-expansion < 1.1.17
- Juliangruber Brace-expansion >= 2.0.0 and < 2.1.3
- Juliangruber Brace-expansion >= 3.0.0 and < 3.0.3
- Juliangruber Brace-expansion >= 4.0.0 and < 5.0.8
- juliangruber brace-expansion <= 5.0.7
- Juliangruber Brace-expansion 1.1.17
- Juliangruber Brace-expansion 2.1.3
- Juliangruber Brace-expansion 3.0.3
- Juliangruber Brace-expansion 5.0.8
- juliangruber brace-expansion 5.0.7
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run Juliangruber Brace-expansion and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Jul 23, 2026Published
- Oct 24, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Juliangruber Brace-expansion CVEsYou are reading CVE-2026-14257. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Dec 5, 2026 13:13 UTC