cve.bz

CVE-2026-14257 juliangruber brace-expansion: Uncontrolled Resource Consumption

7.5 highEPSS 0.6%Fix available

High (7.5) in juliangruber brace-expansion. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in brace-expansion 1.1.17, 2.1.3, 3.0.3.

On this page
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.

Severity

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
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-07-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-400 Uncontrolled Resource Consumption
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-14257 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-14257?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-14257?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-14257 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
juliangruber brace-expansionthrough 5.0.7

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mh99-v99m-4gvgnpmbrace-expansion>=4.0.0 <5.0.85.0.8
GHSA-mh99-v99m-4gvgnpmbrace-expansion>=3.0.0 <3.0.33.0.3
GHSA-mh99-v99m-4gvgnpmbrace-expansion>=2.0.0 <2.1.32.1.3
GHSA-mh99-v99m-4gvgnpmbrace-expansion<1.1.171.1.17

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14node-brace-expansionno fix listedDEBIAN-CVE-2026-14257
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 3 morenode-brace-expansionno fix listedUBUNTU-CVE-2026-14257
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:22.23.1-3.module+el8.10.0+24640+6eba5e6eRHSA-2026:54530
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:24.18.0-3.module+el8.10.0+24639+56878497RHSA-2026:54371
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.1.14-2.module+el8.10.0+24639+56878497RHSA-2026:54371
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.1.14-2.module+el8.10.0+24640+6eba5e6eRHSA-2026:54530
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-6.module+el8.10.0+24500+8eb51621RHSA-2026:54530
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-6.module+el8.10.0+24562+090c6525RHSA-2026:54371
Red Hatenterprise_linux:8::appstreamnpm1:10.9.8-1.22.23.1.3.module+el8.10.0+24640+6eba5e6eRHSA-2026:54530
Red Hatenterprise_linux:8::appstreamnpm1:11.16.0-1.24.18.0.3.module+el8.10.0+24639+56878497RHSA-2026:54371
Red Hatenterprise_linux:8::appstreamv8-12.4-devel3:12.4.254.21-1.22.23.1.3.module+el8.10.0+24640+6eba5e6eRHSA-2026:54530
Red Hatenterprise_linux:8::appstreamv8-13.6-devel3:13.6.233.17-1.24.18.0.3.module+el8.10.0+24639+56878497RHSA-2026:54371
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:22.23.1-3.module+el9.8.0+24637+e0b636e5RHSA-2026:55601
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:24.18.0-6.module+el9.8.0+24638+75f46aeeRHSA-2026:55603
35 more for Red Hat in the JSON and on Red Hat's page.
openSUSETumbleweedvelociraptor0.76.7.0.git145.b60ef1146-1.1openSUSE-SU-2026:12070-1
AlmaLinux8nodejs, nodejs-docs, nodejs-libs and 2 more1:22.23.1-3.module_el8.10.0+4251+b427b8a5ALSA-2026:54530
AlmaLinux8nodejs, nodejs-docs, nodejs-libs and 2 more1:24.18.0-3.module_el8.10.0+4250+09238ed4ALSA-2026:54371
AlmaLinux8nodejs-nodemon3.1.14-2.module_el8.10.0+4250+09238ed4ALSA-2026:54371
AlmaLinux8nodejs-nodemon3.1.14-2.module_el8.10.0+4252+aedd4c30ALSA-2026:54530
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-6.module_el8.10.0+4086+70facd4aALSA-2026:54371
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-6.module_el8.10.0+4158+e796f37fALSA-2026:54530
AlmaLinux8npm1:10.9.8-1.22.23.1.3.module_el8.10.0+4251+b427b8a5ALSA-2026:54530
AlmaLinux8npm1:11.16.0-1.24.18.0.3.module_el8.10.0+4250+09238ed4ALSA-2026:54371
AlmaLinux8v8-12.4-devel3:12.4.254.21-1.22.23.1.3.module_el8.10.0+4251+b427b8a5ALSA-2026:54530
AlmaLinux8v8-13.6-devel3:13.6.233.17-1.24.18.0.3.module_el8.10.0+4250+09238ed4ALSA-2026:54371
AlmaLinux9nodejs, nodejs-docs, nodejs-libs and 2 more1:22.23.1-3.module_el9.8.0+291+0bb98cceALSA-2026:55601
AlmaLinux9nodejs, nodejs-docs, nodejs-libs and 2 more1:24.18.0-6.module_el9.8.0+292+f4eaf8b2ALSA-2026:55603
11 more for AlmaLinux in the JSON.
Rocky Linux8nodejs1:22.23.1-3.module+el8.10.0+40278+50b003a3RLSA-2026:54530
Rocky Linux8nodejs1:24.18.0-3.module+el8.10.0+40277+b1b3f89eRLSA-2026:54371
Rocky Linux8nodejs-nodemon0:3.1.14-2.module+el8.10.0+40277+b1b3f89eRLSA-2026:54371 RLSA-2026:54530
Rocky Linux8nodejs-nodemon0:3.1.14-2.module+el8.10.0+40278+50b003a3RLSA-2026:54371 RLSA-2026:54530
Rocky Linux8nodejs-packaging0:2021.06-6.module+el8.10.0+40048+6d99f608RLSA-2026:54371 RLSA-2026:54530
Rocky Linux8nodejs-packaging0:2021.06-6.module+el8.10.0+40171+8fa9c325RLSA-2026:54371 RLSA-2026:54530
Rocky Linux8nodejs-packaging0:2021.06-6.module+el8.10.0+40172+38f6fdd1RLSA-2026:54371 RLSA-2026:54530
Rocky Linux9nodejs1:22.23.1-3.module+el9.8.0+40280+057606e8RLSA-2026:55601
Rocky Linux9nodejs1:24.18.0-6.module+el9.8.0+40281+14cc6568RLSA-2026:55603
Rocky Linux9nodejs-nodemon0:3.1.14-2.module+el9.8.0+40264+d9b257bbRLSA-2026:55601
Rocky Linux9nodejs-nodemon0:3.1.14-2.module+el9.8.0+40280+057606e8RLSA-2026:55601
Rocky Linux9nodejs-nodemon0:3.1.14-3.module+el9.8.0+40281+14cc6568RLSA-2026:55603
6 more for Rocky Linux in the JSON.
Azure Linux3js-jqueryno fix listedAZL-94520
Azure Linux3nodejs-nodemonno fix listedAZL-94535

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

A flaw was found in the brace-expansion npm package. The expand() function limits the number of generated results but does not bound the length of each result string. By chaining multiple brace groups, an attacker can keep the result count under the limit while making each result progressively longer, causing total memory consumption to grow until the Node.js process crashes with an uncatchable out-of-memory error. This affects any application that passes attacker-influenced strings to brace-expansion directly or transitively via minimatch or glob brace patterns.

Note: In the majority of Red Hat products, brace-expansion is brought in as a transitive dependency of minimatch or glob and is not used at runtime. It is typically only invoked during build or development tooling and is not directly exposed to untrusted network input, reducing the practical exploitability of this flaw.

```

$ npm ls --omit=dev brace-expansion

npm@10.9.8 /usr/lib/node_modules/npm

`-- minimatch@9.0.9

`-- brace-expansion@2.0.2

```

Red Hat's mitigation

Do not pass untrusted or user-controlled input to brace-expansion's expand() function or to libraries that use it for glob pattern matching (such as minimatch or glob). Validate and sanitize any brace patterns before expansion.

Where possible, upgrade to brace-expansion 1.1.17, 2.1.3, 3.0.3, or 5.0.8 which add a maxLength option that bounds accumulated output.

As an additional defense-in-depth measure, enforce memory limits on Node.js processes using operating system resource controls such as cgroups or Kubernetes resource limits (spec.containers[].resources.limits.memory) to prevent a single process from exhausting system memory and causing a wider outage.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10nodejs22-1:22.23.1-6.el10_2Fixed 2026-08-17RHSA-2026:55541
Red Hat Enterprise Linux 10rh-podman-desktop-0:1.1.2-1.el10_2Fixed 2026-08-20RHSA-2026:57590
Red Hat Enterprise Linux 10nodejs24-1:24.18.0-5.el10_2Fixed 2026-08-24RHSA-2026:58819
Red Hat Enterprise Linux 10.0 Extended Update Supportnodejs22-1:22.23.2-1.el10_0Fixed 2026-09-08RHSA-2026:64817
Red Hat Enterprise Linux 8nodejs:24-8100020260807112957.6d880403Fixed 2026-08-12RHSA-2026:54371
Red Hat Enterprise Linux 8nodejs:22-8100020260807115047.6d880403Fixed 2026-08-13RHSA-2026:54530
Red Hat Enterprise Linux 9nodejs:22-9080020260806135640.rhel9Fixed 2026-08-17RHSA-2026:55601
Red Hat Enterprise Linux 9nodejs:24-9080020260806135511.rhel9Fixed 2026-08-17RHSA-2026:55603
Red Hat Enterprise Linux 9.6 Extended Update Supportnodejs:22-9060020260901085634.rhel9Fixed 2026-09-02RHSA-2026:62416
Red Hat Ansible Automation Platform 2.1ansible-automation-platform/automation-portal:1787047114Fixed 2026-08-18RHSA-2026:56338
Cryostat 4brace-expansionNot affected
Cryostat 4cryostat-openshift-console-plugin-npmNot affected
Cryostat 4grafana-infinity-datasource-npmNot affected
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Affected
Gatekeeper 3gatekeeper/gatekeeper-rhel9Not affected
Migration Toolkit for Applications 8mta/mta-cli-rhel9Not affected
Migration Toolkit for Applications 8mta/mta-generic-external-provider-rhel9Not affected
Migration Toolkit for Applications 8mta/mta-ui-rhel8Not affected
Migration Toolkit for Applications 8mta/mta-ui-rhel9Not affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-must-gather-rhel9Not affected
173 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-14257.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON