CVE-2025-5889: juliangruber brace-expansion index.js expand redos
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.
Other sources
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.
— NVD
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/brace-expansionto a version that resolves this vulnerability.Fixed in 4.0.1 - Upgrade
Upgrade
npm/brace-expansionto a version that resolves this vulnerability.Fixed in 3.0.1 - Upgrade
Upgrade
npm/brace-expansionto a version that resolves this vulnerability.Fixed in 1.1.12 - Upgrade
Upgrade
npm/brace-expansionto a version that resolves this vulnerability.Fixed in 2.0.2 - Upgrade
Upgrade
juliangruber/brace-expansionto a version that resolves this vulnerability.Fixed in 1.1.12Patch a5b98a4f30d7813266b221435e1eaaf25a1b0ac5 - Upgrade
Upgrade
juliangruber/brace-expansionto a version that resolves this vulnerability.Fixed in 2.0.2Patch a5b98a4f30d7813266b221435e1eaaf25a1b0ac5 - Upgrade
Upgrade
juliangruber/brace-expansionto a version that resolves this vulnerability.Fixed in 3.0.1Patch a5b98a4f30d7813266b221435e1eaaf25a1b0ac5 - Upgrade
Upgrade
juliangruber/brace-expansionto a version that resolves this vulnerability.Fixed in 4.0.1Patch a5b98a4f30d7813266b221435e1eaaf25a1b0ac5
Event History
Frequently Asked Questions
What is the severity of CVE-2025-5889?
CVE-2025-5889 has been rated as problematic, indicating it poses a significant risk.
What component is affected by CVE-2025-5889?
CVE-2025-5889 affects the function 'expand' in the file 'index.js' of the brace-expansion package.
How does CVE-2025-5889 exploit inefficiencies?
CVE-2025-5889 allows attackers to cause inefficient regular expression complexity, potentially leading to remote attacks.
Which versions of the brace-expansion package are affected by CVE-2025-5889?
CVE-2025-5889 affects brace-expansion versions up to 1.1.11 and between 2.0.1 and 4.0.0.
How do I fix CVE-2025-5889?
To fix CVE-2025-5889, update the brace-expansion package to a version newer than 1.1.11.