CVE-2026-14257
brace-expansion DoS via unbounded expansion length causing an out-of-memory process crash
Also known as GHSA-mh99-v99m-4gvg
Mitigation
- Upgrade brace-expansion to one of 5.0.8, 3.0.3, 2.1.3, 1.1.17 (or later in the same release line).
Who should check
- Projects that depend on npm package brace-expansion (>= 4.0.0, < 5.0.8)
- Anyone running juliangruber brace-expansion <= 5.0.7
Vulnerability facts
- Affected
- brace-expansion >= 4.0.0, < 5.0.8
- Fixed in
- 5.0.8, 3.0.3, 2.1.3, 1.1.17
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.84% chance of exploitation in 30 days (percentile 55, 2026-11-26)
- CWE
- CWE-400, CWE-770
- Modified
Description
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm brace-expansion | >= 4.0.0, < 5.0.8 | 5.0.8, 3.0.3, 2.1.3, 1.1.17 | osv |
| juliangruber brace-expansion | <= 5.0.7 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-14257. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-14257.md Affected: brace-expansion >= 4.0.0, < 5.0.8 Fixed in: 5.0.8, 3.0.3, 2.1.3, 1.1.17 Steps: 1. Search this machine and project for brace-expansion (npm), juliangruber brace-expansion: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/juliangruber/brace-expansion/commit/a1bd33999ea75262c4749fff3bbb0d1372bd07b5
- https://github.com/juliangruber/brace-expansion/pull/129
- https://github.com/juliangruber/brace-expansion/pull/130
- https://github.com/juliangruber/brace-expansion/pull/136
- https://github.com/juliangruber/brace-expansion/commit/139d015104e71433ad52a41d19467c48ecbb2c7d
- https://github.com/juliangruber/brace-expansion/commit/cb4b9e47cc2ec777c14b2b4492fb431a56f6a031
- https://github.com/juliangruber/brace-expansion/commit/d13ff455a58b0d56704f0111e3c2a0b16ceb06eb
FAQ
Is CVE-2026-14257 being exploited?
There is no confirmed exploitation: CVE-2026-14257 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.84% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-14257?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-14257?
brace-expansion >= 4.0.0, < 5.0.8.
Is there a fix for CVE-2026-14257?
Yes. Fixed in 5.0.8, 3.0.3, 2.1.3, 1.1.17. Upgrade brace-expansion to one of 5.0.8, 3.0.3, 2.1.3, 1.1.17 (or later in the same release line).
How do I check if I'm affected by CVE-2026-14257?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.