# CVE-2026-14257: brace-expansion DoS via unbounded expansion length causing an out-of-memory process crash

- Severity: High 7.5 (CVSS:3.1, scored by seal) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Published: 2026-07-23T12:54:23.124Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: GHSA-mh99-v99m-4gvg
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: seal

## 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.

(As written by CVE List.)

## Affected

- brace-expansion: up to 5.0.7
- brace-expansion (npm): from 4.0.0 before 5.0.8; from 3.0.0 before 3.0.3; from 2.0.0 before 2.1.3; before 1.1.17
- juliangruber brace-expansion: before 1.1.17; from 2.0.0 before 2.1.3; from 3.0.0 before 3.0.3; from 4.0.0 before 5.0.8

## Every score

- seal: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://www.npmjs.com/package/brace-expansion> (product, web)
- <https://github.com/juliangruber/brace-expansion> (package, product)
- <https://github.com/juliangruber/brace-expansion/commit/a1bd33999ea75262c4749fff3bbb0d1372bd07b5> (patch, web)
- <https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-mh99-v99m-4gvg> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-14257> (advisory)
- <https://github.com/juliangruber/brace-expansion/pull/129> (web)
- <https://github.com/juliangruber/brace-expansion/pull/130> (web)
- <https://github.com/juliangruber/brace-expansion/pull/136> (web)
- <https://github.com/juliangruber/brace-expansion/commit/139d015104e71433ad52a41d19467c48ecbb2c7d> (web)
- <https://github.com/juliangruber/brace-expansion/commit/cb4b9e47cc2ec777c14b2b4492fb431a56f6a031> (web)
- <https://github.com/juliangruber/brace-expansion/commit/d13ff455a58b0d56704f0111e3c2a0b16ceb06eb> (web)

## Sources

- CVE List: [CVE-2026-14257](https://www.cve.org/CVERecord?id=CVE-2026-14257), CVE Terms of Use, modified 2026-07-23
- GitHub Advisory Database: [GHSA-mh99-v99m-4gvg](https://github.com/advisories/GHSA-mh99-v99m-4gvg), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-14257](https://nvd.nist.gov/vuln/detail/CVE-2026-14257), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-14257 · Whole record: https://cve.day/CVE-2026-14257.json · Rebuilt by cve.day 2026-11-25T22:59:29.919Z
