
CVE catalog
CVE-2026-14257
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 le
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.64% · Oct 27, 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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-brace-expansion | sid | 2.1.7+~1.1.2-1 | vulnerable |
| Debian | node-brace-expansion | forky | 2.1.7+~1.1.2-1 | vulnerable |
| Debian | node-brace-expansion | trixie | 2.0.1+~1.1.0-2 | vulnerable |
| Debian | node-brace-expansion | bookworm | 2.0.1-2 | vulnerable |
| Npm | brace-expansion | Not reported | 1.1.17 | fixed |
| Npm | brace-expansion | Not reported | 5.0.8 | fixed |
| Cpe | brace-expansion | Not reported | 5.0.8 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-brace-expansion | source | sid | (unfixed) | not yet assigned | Not reported | [1142832] |
| Debian | node-brace-expansion | source | forky | (unfixed) | not yet assigned | Not reported | [1142832] |
| Debian | node-brace-expansion | source | trixie | (unfixed) | not yet assigned | Not reported | [1142832] |
| Debian | node-brace-expansion | source | bookworm | (unfixed) | not yet assigned | Not reported | [1142832] |
| Npm | brace-expansion | npm | Not reported | 1.1.17 | Not reported | GHSA-MH99-V99M-4GVG | Not reported |
| Npm | brace-expansion | npm | Not reported | 5.0.8 | Not reported | Not reported | Not reported |
| Cpe | brace-expansion | cpe | Not reported | 5.0.8 | Not reported | NVD-CVE-2026-14257 | Not reported |
Notes
[trixie] node-brace-expansion: Minor issue [bookworm] node-brace-expansion: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [node-brace-expansion]Affected
Details (2)
2.0.1-2· all · bookwormAffected
nvd · node-brace-expansion · debian · bookworm; nvd · node-brace-expansion · debian · 12
2.0.1-2· all · bookwormAffected
nvd · node-brace-expansion · debian · bookworm; nvd · node-brace-expansion · debian · 12
[Debian 13 (Trixie)]
- [node-brace-expansion]Affected
Details (2)
2.0.1+~1.1.0-2· all · trixieAffected
nvd · node-brace-expansion · debian · 13
2.0.1+~1.1.0-2· all · trixieAffected
nvd · node-brace-expansion · debian · 13
Observed:
References
- [https://access.redhat.com/errata/RHSA-2026:57365]
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2026_54371.json]
- [https://github.com/juliangruber/brace-expansion]
- [https://github.com/juliangruber/brace-expansion/commit/a1bd33999ea75262c4749fff3bbb0d1372bd07b5]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-14257]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-14257]
- [https://osv.dev/vulnerability/GHSA-mh99-v99m-4gvg]
- [https://security-tracker.debian.org/tracker/CVE-2026-14257]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2816.json]
- [https://www.npmjs.com/package/brace-expansion]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]