cve.bz

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

7.5 highEPSS 0.3%Fix available

High (7.5) in juliangruber brace-expansion. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in brace-expansion 5.0.6.

On this page
The brace-expansion library generates arbitrary strings containing a common prefix and suffix. From 5.0.0 to before 5.0.6, the max option was being applied too late. When expanding a single large numeric range like {1..10000000}, the sequence generation loop generates all 10 million intermediate elements before the max limit is applied With max=10, the output is correctly limited to 10 items, but the process still allocates ~505 MB and spends ~800ms building the full intermediate array. This vulnerability is fixed in 5.0.6.

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.3% (unchanged from 0.3% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 23rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-06-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-400 Uncontrolled Resource Consumption
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-45149 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-45149?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-45149?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-45149 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 NVD's CPE matches.

ProductAffected
juliangruber:brace-expansionfrom 5.0.0 before 5.0.6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-jxxr-4gwj-5jf2npmbrace-expansion>=5.0.0 <5.0.65.0.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13node-brace-expansionno fix listedDEBIAN-CVE-2026-45149
Debian14node-brace-expansion2.0.3+~1.1.2-3DEBIAN-CVE-2026-45149
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 morenode-brace-expansionno fix listedUBUNTU-CVE-2026-45149
Red Hathummingbird:1dotnet8.00:8.0.127-1.hum1RHSA-2026:17682
Red Hathummingbird:1lld, lldb, llvm and 41 more0:21.1.8-1.1.hum1RHSA-2026:7634
Red Hathummingbird:1lld21, lldb21, llvm21 and 23 more0:21.1.8-6.hum1RHSA-2026:24069
Red Hathummingbird:1nodejs20, nodejs20-bin, nodejs20-docs and 4 more0:20.20.2-1.hum1RHSA-2026:9455
Red Hathummingbird:1nodejs20-npm0:10.8.2-1.20.20.2.1.hum1RHSA-2026:9455
Red Hathummingbird:1nodejs22, nodejs22-bin, nodejs22-docs and 4 more0:22.22.0-1.3.hum1RHSA-2026:7387
Red Hathummingbird:1nodejs22-npm0:10.9.4-1.22.22.0.1.3.hum1RHSA-2026:7387
Red Hathummingbird:1nodejs24, nodejs24-bin, nodejs24-docs and 4 more0:24.15.0-1.hum1RHSA-2026:13874
Red Hathummingbird:1nodejs24-npm0:11.12.1-1.24.15.0.1.hum1RHSA-2026:13874
Red Hathummingbird:1nodejs25, nodejs25-bin, nodejs25-docs and 4 more0:25.9.0-1.1.hum1RHSA-2026:7378
Red Hathummingbird:1nodejs25-npm0:11.12.1-1.25.9.0.1.1.hum1RHSA-2026:7378
Red Hathummingbird:1nodejs26, nodejs26-bin, nodejs26-docs and 4 more0:26.3.0-1.2.hum1RHSA-2026:22380
3 more for Red Hat in the JSON and on Red Hat's page.

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat products ship brace-expansion versions 1.x and 2.x, which are not affected by this vulnerability. The flaw exists only in versions 5.0.0 through 5.0.5.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Hardened Imagesnodejs24-main-11.12.1-1.24.15.0.1.hum1Fixed 2026-05-05RHSA-2026:13874
Red Hat Hardened Imagesnodejs24-main-24.15.0-1.hum1Fixed 2026-05-05RHSA-2026:13874
Red Hat Hardened Imagesdotnet8-0-main-8.0.127-1.hum1Fixed 2026-05-14RHSA-2026:17682
Red Hat Hardened Imagesnodejs26-main-11.16.0-1.26.3.0.1.2.hum1Fixed 2026-06-02RHSA-2026:22380
Red Hat Hardened Imagesnodejs26-main-26.3.0-1.2.hum1Fixed 2026-06-02RHSA-2026:22380
Red Hat Hardened Imagesrust-main-1.96.0-1.hum1Fixed 2026-06-03RHSA-2026:22934
Red Hat Hardened Imagesllvm21-main-21.1.8-6.hum1Fixed 2026-06-07RHSA-2026:24069
Red Hat Hardened Imagesnodejs25-main-11.12.1-1.25.9.0.1.1.hum1Fixed 2026-04-10RHSA-2026:7378
Red Hat Hardened Imagesnodejs25-main-25.9.0-1.1.hum1Fixed 2026-04-10RHSA-2026:7378
Red Hat Hardened Imagesnodejs22-main-10.9.4-1.22.22.0.1.3.hum1Fixed 2026-04-10RHSA-2026:7387
Confidential Compute Attestationopenshift-sandboxed-containers/osc-pccsFix deferred
Cryostat 4brace-expansionNot affected
Cryostat 4cryostat-openshift-console-plugin-npmFix deferred
Cryostat 4grafana-infinity-datasource-npmNot affected
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Fix deferred
Gatekeeper 3gatekeeper/gatekeeper-rhel9Not affected
Migration Toolkit for Applications 8mta/mta-ui-rhel8Not affected
Migration Toolkit for Applications 8mta/mta-ui-rhel9Not affected
Migration Toolkit for Containersrhmtc/openshift-migration-ui-rhel8Fix deferred
Node HealthCheck Operatorworkload-availability/node-healthcheck-must-gather-rhel9Not affected
184 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-45149.

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.

References

Check your stackJSON