Vulnerability · Published Jun 9, 2025 · Assigned by VulDB

CVE-2025-5889juliangruber brace-expansion index.js expand redos

Low 3.1

In plain English

A low-severity regular-expression denial of service in brace-expansion from juliangruber. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.1Low
Exploit odds (30 days)0.6%top 50.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.22npm11.4.2-r0ALPINE-CVE-2025-5889
Debian:12node-brace-expansionno fix listedDEBIAN-CVE-2025-5889
Debian:13node-brace-expansion2.0.1+~1.1.0-2DEBIAN-CVE-2025-5889
Debian:14node-brace-expansion2.0.1+~1.1.0-2DEBIAN-CVE-2025-5889
Ubuntu:22.04:LTSnode-brace-expansionno fix listedUBUNTU-CVE-2025-5889
Ubuntu:24.04:LTSnode-brace-expansionno fix listedUBUNTU-CVE-2025-5889
Ubuntu:25.10node-brace-expansionno fix listedUBUNTU-CVE-2025-5889
npmbrace-expansion2.0.2GHSA-v6h2-p8h4-qcjw
npmbrace-expansion4.0.1GHSA-v6h2-p8h4-qcjw
npmbrace-expansion3.0.1GHSA-v6h2-p8h4-qcjw
npmbrace-expansion1.1.12GHSA-v6h2-p8h4-qcjw

Affected products (as reported)

VendorProductVersions
juliangruber brace-expansion 1.1.01.1.11.1.21.1.31.1.41.1.51.1.61.1.7

Weakness: CWE-1333, CWE-400 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C

References