1. Home
  2. Vulnerabilities
  3. CVE-2026-14257

CVE-2026-14257

brace-expansion through 5.0.7 is vulnerable to denial of service via memory exhaustion. The expand() function…

Published 23 Jul 2026 · modified 24 Oct 2026 · Sources: NVD, CNA (vendor or assigner), CERT-FR, EPSS (FIRST)

Medium 46/100

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.

Affected products and versions

Juliangruber (4 line(s))
Juliangruber
ProductVersionsFixed inSource
Brace-expansion before 1.1.17 (excluded) — NVD
Brace-expansion from 2.0.0 (included) to 2.1.3 (excluded) — NVD
Brace-expansion from 3.0.0 (included) to 3.0.3 (excluded) — NVD
Brace-expansion from 4.0.0 (included) to 5.0.8 (excluded) — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)
  2. — CERT-FR advisory (certfr:CERTFR-2026-AVI-1256)
  3. — CERT-FR advisory (certfr:CERTFR-2026-AVI-1366)
  4. — CERT-FR advisory (certfr:CERTFR-2026-AVI-1385)
  5. — CERT-FR advisory (certfr:CERTFR-2026-AVI-1472)
  6. — CERT-FR advisory (certfr:CERTFR-2026-AVI-1539)
  7. — CERT-FR advisory (certfr:CERTFR-2026-AVI-1576)

CERT-FR advisories

References

Data provenance

Status
NVD
Publication date
NVD
Description
NVD
CVSS score
CNA (vendor or assigner)
Weakness (CWE)
CNA (vendor or assigner)
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, CNA:22e2d327-25fe-45d7-9f0c-dcd23b7108df)
Weakness
CWE-400 · Autre (CWE-400)

How this data is obtained and calculated