CVE-2026-25547

Uncontrolled Resource Consumption in @isaacs/brace-expansion

Published Feb 4, 2026 CVSS 4.0 · 9.2 Critical EPSS < 1% KEV · Not listed
Description
@isaacs/brace-expansion is a hybrid CJS/ESM TypeScript fork of brace-expansion. Prior to version 5.0.1, @isaacs/brace-expansion is vulnerable to a denial of service (DoS) issue caused by unbounded brace range expansion. When an attacker provides a pattern containing repeated numeric brace ranges, the library attempts to eagerly generate every possible combination synchronously. Because the expansion grows exponentially, even a small input can consume excessive CPU and memory and may crash the Node.js process. This issue has been patched in version 5.0.1.

Analysis

AI-generated

Technical impact

@isaacs/brace-expansion, a TypeScript fork of the brace‑expansion library, contains a denial of service flaw that triggers when an attacker supplies a pattern with repeated numeric brace ranges. The library attempts to eagerly generate every combination synchronously, and because the possible combinations grow exponentially, even a modest input can exhaust CPU cycles and memory, eventually crashing the Node.js process. The issue is rooted in resource exhaustion (CWE‑1333) and potential uncontrolled recursion or expansion (CWE‑409).

Affected Systems

Applications that depend on isaacs:brace-expansion before version 5.0.1 are affected. Any Node.js project importing this library, especially those that process user‑supplied brace patterns, should be considered vulnerable. The problem is limited to the library itself; other Node.js modules are not directly impacted unless they transitively use brace‑expansion.

Risk and Exploitability

The flaw carries a CVSS score of 9.2, indicating a high severity impact. Current exploit probability according to EPSS is below 1%, suggesting a low likelihood of widespread exploitation, though no high‑profile exploits have been reported. The vulnerability is not listed in the CISA KEV catalog. The attack vector is inferred to be remote or local, depending on whether the application accepts user input that is handed to brace‑expansion. An attacker could send a crafted pattern over the network or supply it via a command line argument, leading to denial of service against the affected process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade @isaacs/brace-expansion to version 5.0.1 or later.
  • Validate or sanitize patterns before passing them to brace‑expansion, rejecting or limiting excessively large brace ranges.
  • Configure Node.js resource limits (e.g., --max-old-space-size) and monitor CPU/memory usage to detect and mitigate sudden spikes that may indicate abuse.

Generated by OpenCVE AI on April 17, 2026 at 23:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-7h2j-956f-4vf2 @isaacs/brace-expansion has Uncontrolled Resource Consumption
History
Type Values Removed Values Added
Weaknesses CWE-409
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Isaacs
Isaacs brace-expansion
Vendors & Products Isaacs
Isaacs brace-expansion
Type Values Removed Values Added
Description @isaacs/brace-expansion is a hybrid CJS/ESM TypeScript fork of brace-expansion. Prior to version 5.0.1, @isaacs/brace-expansion is vulnerable to a denial of service (DoS) issue caused by unbounded brace range expansion. When an attacker provides a pattern containing repeated numeric brace ranges, the library attempts to eagerly generate every possible combination synchronously. Because the expansion grows exponentially, even a small input can consume excessive CPU and memory and may crash the Node.js process. This issue has been patched in version 5.0.1.
Title Uncontrolled Resource Consumption in @isaacs/brace-expansion
Weaknesses CWE-1333
References
Metrics cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H'}

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

  • CWE-409

    Improper Handling of Highly Compressed Data (Data Amplification)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 5, 2026, 2:31 PM
Reserved
Feb 2, 2026, 7:59 PM
Status
Deferred
Published
Feb 4, 2026, 10:16 PM
Modified
Jun 17, 2026, 10:24 AM
Severity
Moderate
Public date
Feb 4, 2026, 9:51 PM