NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2025-5889: brace-expansion Regular Expression Denial of Service vulnerability

lowCVSS 4.0 1.3 · 3.1 3.1GHSA-v6h2-p8h4-qcjw

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.

Published Jun 9, 2025 · Updated Jun 11, 2025

Affected packages

brace-expansion

Ecosystem
npm
Affected
>= 2.0.0, <= 2.0.1
Fixed in
2.0.2
Check
npm ls brace-expansion

brace-expansion

Ecosystem
npm
Affected
>= 1.0.0, <= 1.1.11
Fixed in
1.1.12
Check
npm ls brace-expansion

brace-expansion

Ecosystem
npm
Affected
= 3.0.0
Fixed in
3.0.1
Check
npm ls brace-expansion

brace-expansion

Ecosystem
npm
Affected
= 4.0.0
Fixed in
4.0.1
Check
npm ls brace-expansion

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to turi4200, carboneater, viceice.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries