CVE-2025-5889juliangruber 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.
What to do
Fixed builds are available from Alpine, Debian, npm: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | node-brace-expansion | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | node-brace-expansion | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-5889 | |
| Ubuntu 24.04 | node-brace-expansion | Under investigation | UBUNTU-CVE-2025-5889 | |
| Ubuntu 22.04 | node-brace-expansion | Under investigation | UBUNTU-CVE-2025-5889 | |
| Ubuntu 20.04 | node-brace-expansion | Fix pending | UBUNTU-CVE-2025-5889 | |
| Ubuntu 18.04 | node-brace-expansion | Fix pending | UBUNTU-CVE-2025-5889 | |
| Debian 14 | node-brace-expansion | Fixed | 2.0.1+~1.1.0-2 | DEBIAN-CVE-2025-5889 |
| Debian 13 | node-brace-expansion | Fixed | 2.0.1+~1.1.0-2 | DEBIAN-CVE-2025-5889 |
| Debian 12 | node-brace-expansion | Fix pending | DEBIAN-CVE-2025-5889 | |
| Red Hat Enterprise Linux 10 | 389-ds-base | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | nodejs-nodemon | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | nodejs22 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | 389-ds-base | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | 389-ds-base-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | 389-ds-base-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | 389-ds-base-snmp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gjs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gjs-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | grafana | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | nodejs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | nodejs-docs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | nodejs-full-i18n | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | nodejs-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | nodejs-nodemon | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | npm | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pcs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pcs-snmp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | polkit | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | polkit-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | polkit-docs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | polkit-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | python3-lib389 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mozjs60 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mozjs60-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | nodejs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | nodejs-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | nodejs-docs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | nodejs-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | nodejs-nodemon | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | nodejs-packaging | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | nodejs-packaging-bundler | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | npm | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | pcs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | pcs-snmp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | v8-12.4-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | v8-13.6-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | firefox | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | thunderbird | Fix pending Fix deferred | ||
| Alpine Linux 3.22 | npm | Fixed | 11.4.2-r0 | ALPINE-CVE-2025-5889 |
| npm library | brace-expansion | Fixed | 4.0.1 | GHSA-v6h2-p8h4-qcjw |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- juliangruber brace-expansion: affected: 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5
Vendor advisories:
- https://github.com/juliangruber/brace-expansion/pull/65/commits/a5b98a4f30d7813266b221435… (patch)
- https://github.com/juliangruber/brace-expansion/releases/tag/v4.0.1 (patch)
References
- https://vuldb.com/?id.311660
- https://vuldb.com/?ctiid.311660
- https://vuldb.com/?submit.585717
- https://gist.github.com/mmmsssttt404/37a40ce7d6e5ca604858fe30814d9466
- https://github.com/juliangruber/brace-expansion/pull/65/commits/a5b98a4f30d7813266b221435e1eaaf25a1b0ac5
- https://github.com/juliangruber/brace-expansion/releases/tag/v4.0.1
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.