Skip to main content

brace-expansion CVE-2025-5889

| EUVDEUVD-2025-17567 LOW
Uncontrolled Resource Consumption (CWE-400)
2025-06-09 cna@vuldb.com GHSA-v6h2-p8h4-qcjw
1.3
CVSS 4.0 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious brace pattern
  2. Delivery
    Send to application using brace-expansion
  3. Exploit
    Application calls expand()
  4. Execution
    Regex backtracking consumes CPU
  5. Impact
    Denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2021 - Security Misconfiguration
ASVS 5.0
V14 - Configuration Security hardening, default configuration review
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must be able to supply input to an application that uses the brace-expansion library's expand function. The attack requires low privileges (PR:L) and high attack complexity (AC:H) due to the need to craft a specific pattern that triggers the ReDoS. The attack is remote (AV:N) but requires user interaction (UI:N) and no special configuration beyond using the vulnerable library.

Impact

The CVSS 4.0 vector indicates a low severity (1.3) with high attack complexity (AC:H) and low privileges required (PR:L). The EPSS score is very low (0.03%, percentile 8%), suggesting minimal exploitation likelihood. No CISA KEV listing exists. The exploit is publicly disclosed, but the high complexity and low impact (only availability impact) make this a low-priority issue for most environments. The SSVC decision would likely be 'Track' rather than 'Act'.

Exploit ScenarioDerived

An attacker with low privileges (e.g., a user able to supply input to an application that uses brace-expansion) can craft a string like {a} followed by many commas and a null byte. When the application processes this input via the expand function, the regex causes catastrophic backtracking, consuming excessive CPU time and potentially causing a denial of service.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Jul 26, 2026

Inefficient regular expression complexity in brace-expansion up to versions 1.1.11/2.0.1/3.0.0/4.0.0 allows remote attackers to cause a denial of service via a crafted brace pattern. The vulnerability is publicly known with a proof of concept, but exploitation is difficult due to high attack complexity and low EPSS score (0.03%). No active exploitation in the wild has been reported.

Earlier versions of this analysis (1)
v1 Mar 14, 2026 - 19:21 CVSS 3.1

RemediationAI

Upgrade brace-expansion to version 1.1.12, 2.0.2, 3.0.1, or 4.0.1, depending on the major version in use. The patch commit is a5b98a4f30d7813266b221435e1eaaf25a1b0ac5. For Debian and Ubuntu systems, apply the respective security updates. No workarounds are available; the only mitigation is to update the package.

Affected VersionsENISA

brace-expansion 1.1.6
brace-expansion 1.1.10
brace-expansion 1.1.2
brace-expansion 1.1.11
brace-expansion 1.1.3
brace-expansion 2.0.0
brace-expansion 1.1.8
brace-expansion 1.1.5
brace-expansion 4.0
brace-expansion 1.1.1
brace-expansion 1.1.4
brace-expansion 1.1.7
brace-expansion 1.1.9
brace-expansion 2.0.1
brace-expansion 3.0
brace-expansion 1.1.0

Affected Packages

npm brace-expansion fix: 1.1.12, 2.0.2, 3.0.1, 4.0.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is a ReDoS (Regular Expression Denial of Service) in the expand function of index.js in the brace-expansion npm package. The CWE-400 (Uncontrolled Resource Consumption) root cause is a regex that can exhibit catastrophic backtracking when processing specially crafted input with many commas. The affected regex is m.post.match(/,.*\}/) which is replaced with m.post.match(/,(?!,).*\}/) in the fix. The package is widely used as a dependency in many JavaScript projects, including npm itself.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 1.3 LOW
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 3.1 LOW

High complexity due to crafted input; low privileges; only availability impact.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Ubuntu MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
CVSS changed
Apr 29, 2026 - 01:11 NVD
3.1 (LOW) 1.3 (LOW)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Jun 09, 2025 - 19:15 nvd
LOW 3.1
CVE Published
Jun 09, 2025 - 19:15 cve.org
LOW 1.3

DescriptionCVE.org

A vulnerability was found in juliangruber brace-expansion up to 1.1.11/2.0.1/3.0.0/4.0.0. It has been rated as problematic. Affected by this issue is the function expand of the file index.js. The manipulation leads to inefficient regular expression complexity. The attack may be launched remotely. The complexity of an attack is rather high. The exploitation is known to be difficult. The exploit has been disclosed to the public and may be used. Upgrading to version 1.1.12, 2.0.2, 3.0.1 and 4.0.1 is able to address this issue. The name of the patch is a5b98a4f30d7813266b221435e1eaaf25a1b0ac5. It is recommended to upgrade the affected component.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 npm packages depend on brace-expansion (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 2.0.0.

Executive ViewAI

Why It Matters

CVE-2025-5889 is a low-severity vulnerability in juliangruber brace-expansion involving resource exhaustion (CVSS 3.1). The limited severity suggests constrained impact, typically requiring specific conditions or local access for exploitation. Apply vendor updates when available as part of routine maintenance.

Business Impact: Low
Compensating Controls

Apply vendor patch during routine maintenance. Standard denial of service mitigations apply if patching is delayed.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Prevalence
High
widely used npm dependency
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Low

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +6
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

Ubuntu

Priority: Medium
node-brace-expansion
Release Status Version
bionic needs-triage -
focal needs-triage -
jammy needs-triage -
noble needs-triage -
upstream released 2.0.1+~1.1.0-2
plucky ignored end of life, was needs-triage
oracular ignored end of life, was needs-triage
questing needs-triage -

Debian

Bug #1107695
node-brace-expansion
Release Status Fixed Version Urgency
bullseye vulnerable 2.0.0-1 -
bookworm vulnerable 2.0.1-2 -
forky, sid, trixie fixed 2.0.1+~1.1.0-2 -
(unstable) fixed 2.0.1+~1.1.0-2 -

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy