Live threats

All CVEs / Juliangruber

CVE-2026-14257Juliangruber Brace-expansion

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Jul 23, 2026
Updated
Oct 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-770
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Brace-expansion.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm brace-expansion ≥ 4.0.0 < 5.0.8 5.0.8 npm install brace-expansion@5.0.8
npm brace-expansion ≥ 3.0.0 < 3.0.3 3.0.3 npm install brace-expansion@3.0.3
npm brace-expansion ≥ 2.0.0 < 2.1.3 2.1.3 npm install brace-expansion@2.1.3
npm brace-expansion < 1.1.17 1.1.17 npm install brace-expansion@1.1.17

Per OSV / GitHub Advisories (GHSA-mh99-v99m-4gvg). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
juliangruberbrace-expansion< 1.1.17
juliangruberbrace-expansion≥ 2.0.0 < 2.1.3
juliangruberbrace-expansion≥ 3.0.0 < 3.0.3
juliangruberbrace-expansion≥ 4.0.0 < 5.0.8

Official advisories

Also: Red Hat (+12)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.