CVE-2026-14257brace-expansion DoS via unbounded expansion length causing an out-of-memory process crash
brace-expansion through 5.0.7 is vulnerable to denial of service via memory exhaustion. The expand() function limits the number of results with a max option (default 100,000) but does not bound the length of each result string. By chaining multiple brace groups, an attacker keeps the result count under the limit while making each result progressively longer, so total memory scales with both count and string length until the process hits a fatal, uncatchable out-of-memory error. About 7.5 KB of input ('{a,b}'.repeat(1500)) crashes a default Node.js process. Any application that passes attacker-influenced strings to brace-expansion.expand() - directly or transitively via minimatch / glob brace patterns - can be crashed by a small request. Fixed in 5.0.8 by adding a maxLength option (default 4,000,000) that bounds accumulated output and intermediate arrays.
What to do
Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux, npm: see the table below for the fixed version per release.
Debian, 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.10 | node-brace-expansion | Fix pending | UBUNTU-CVE-2026-14257 | |
| Ubuntu 26.04 | node-brace-expansion | Under investigation | UBUNTU-CVE-2026-14257 | |
| Ubuntu 24.04 | node-brace-expansion | Under investigation | UBUNTU-CVE-2026-14257 | |
| Ubuntu 22.04 | node-brace-expansion | Under investigation | UBUNTU-CVE-2026-14257 | |
| Ubuntu 20.04 | node-brace-expansion | Fix pending | UBUNTU-CVE-2026-14257 | |
| Ubuntu 18.04 | node-brace-expansion | Fix pending | UBUNTU-CVE-2026-14257 | |
| Debian 14 | node-brace-expansion | Fix pending | DEBIAN-CVE-2026-14257 | |
| Debian 13 | node-brace-expansion | Fix pending | DEBIAN-CVE-2026-14257 | |
| Debian 12 | node-brace-expansion | Fix pending | DEBIAN-CVE-2026-14257 | |
| Red Hat Enterprise Linux 10 | cargo | Not affected | ||
| Red Hat Enterprise Linux 10 | clippy | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs | Fixed | 1:22.23.1-6.el10_2 | RHSA-2026:55541 |
| Red Hat Enterprise Linux 10 | nodejs-devel | Fixed | 1:22.23.1-6.el10_2 | RHSA-2026:55541 |
| Red Hat Enterprise Linux 10 | nodejs-docs | Fixed | 1:22.23.1-6.el10_2 | RHSA-2026:55541 |
| Red Hat Enterprise Linux 10 | nodejs-full-i18n | Fixed | 1:22.23.1-6.el10_2 | RHSA-2026:55541 |
| Red Hat Enterprise Linux 10 | nodejs-libs | Fixed | 1:22.23.1-6.el10_2 | RHSA-2026:55541 |
| Red Hat Enterprise Linux 10 | nodejs-nodemon | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs-npm | Fixed | 1:10.9.8-1.22.23.1.6.el10_2 | RHSA-2026:55541 |
| Red Hat Enterprise Linux 10 | nodejs22 | Fixed | 1:22.23.1-6.el10_2 | RHSA-2026:55541 |
| Red Hat Enterprise Linux 10 | nodejs24 | Fixed | 1:24.18.0-5.el10_2 | RHSA-2026:58819 |
| Red Hat Enterprise Linux 10 | nodejs24-devel | Fixed | 1:24.18.0-5.el10_2 | RHSA-2026:58819 |
| Red Hat Enterprise Linux 10 | nodejs24-docs | Fixed | 1:24.18.0-5.el10_2 | RHSA-2026:58819 |
| Red Hat Enterprise Linux 10 | nodejs24-full-i18n | Fixed | 1:24.18.0-5.el10_2 | RHSA-2026:58819 |
| Red Hat Enterprise Linux 10 | nodejs24-libs | Fixed | 1:24.18.0-5.el10_2 | RHSA-2026:58819 |
| Red Hat Enterprise Linux 10 | nodejs24-npm | Fixed | 1:11.16.0-1.24.18.0.5.el10_2 | RHSA-2026:58819 |
| Red Hat Enterprise Linux 10 | rh-podman-desktop | Fixed | 0:1.1.2-1.el10_2 | RHSA-2026:57590 |
| Red Hat Enterprise Linux 10 | rust | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-analyzer | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-debugger-common | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-doc | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-gdb | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-lldb | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-src | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static-aarch64-unknown-none-softfloat | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static-wasm32-unknown-unknown | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static-wasm32-wasip1 | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static-x86_64-unknown-none | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-toolset | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-toolset-srpm-macros | Not affected | ||
| Red Hat Enterprise Linux 10 | rustfmt | Not affected | ||
| Red Hat Enterprise Linux 9 | cargo | Not affected | ||
| Red Hat Enterprise Linux 9 | clippy | Not affected | ||
| Red Hat Enterprise Linux 9 | gjs | Not affected | ||
| Red Hat Enterprise Linux 9 | gjs-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs | Fixed | 1:24.18.0-6.module+el9.8.0+24638+75f46aee | RHSA-2026:55601 |
| Red Hat Enterprise Linux 9 | nodejs-devel | Fixed | 1:24.18.0-6.module+el9.8.0+24638+75f46aee | RHSA-2026:55601 |
| Red Hat Enterprise Linux 9 | nodejs-docs | Fixed | 1:24.18.0-6.module+el9.8.0+24638+75f46aee | RHSA-2026:55601 |
| Red Hat Enterprise Linux 9 | nodejs-full-i18n | Fixed | 1:22.23.1-3.module+el9.8.0+24637+e0b636e5 | RHSA-2026:55603 |
| Red Hat Enterprise Linux 9 | nodejs-libs | Fixed | 1:24.18.0-6.module+el9.8.0+24638+75f46aee | RHSA-2026:55601 |
| Red Hat Enterprise Linux 9 | nodejs-nodemon | Fixed | 0:3.1.14-3.module+el9.8.0+24638+75f46aee | RHSA-2026:55601 |
| Red Hat Enterprise Linux 9 | nodejs-packaging | Fixed | 0:2021.06-6.module+el9.8.0+24156+bb41d456 | RHSA-2026:55603 |
| Red Hat Enterprise Linux 9 | nodejs-packaging-bundler | Fixed | 0:2021.06-6.module+el9.8.0+24156+bb41d456 | RHSA-2026:55603 |
| Red Hat Enterprise Linux 9 | npm | Fixed | 1:11.16.0-1.24.18.0.6.module+el9.8.0+24638+75f46aee | RHSA-2026:55601 |
| Red Hat Enterprise Linux 9 | pcs | Not affected | ||
| Red Hat Enterprise Linux 9 | pcs-snmp | Not affected | ||
| Red Hat Enterprise Linux 9 | rust | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-analysis | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-analyzer | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-debugger-common | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-gdb | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-lldb | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-src | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-std-static | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-unknown-unknown | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-wasi | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-wasip1 | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-toolset | Not affected | ||
| Red Hat Enterprise Linux 9 | rustfmt | Not affected | ||
| Red Hat Enterprise Linux 9 | v8-12.4-devel | Fixed | 3:12.4.254.21-1.22.23.1.3.module+el9.8.0+24637+e0b636e5 | RHSA-2026:55601 |
| Red Hat Enterprise Linux 9 | v8-13.6-devel | Fixed | 3:13.6.233.17-1.24.18.0.6.module+el9.8.0+24638+75f46aee | RHSA-2026:55603 |
| Red Hat Enterprise Linux 8 | grafana | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Not affected | ||
| Red Hat Enterprise Linux 8 | mozjs60 | Not affected | ||
| Red Hat Enterprise Linux 8 | mozjs60-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs | Fixed | 1:22.23.1-3.module+el8.10.0+24640+6eba5e6e | RHSA-2026:54371 |
| Red Hat Enterprise Linux 8 | nodejs-devel | Fixed | 1:24.18.0-3.module+el8.10.0+24639+56878497 | RHSA-2026:54530 |
| Red Hat Enterprise Linux 8 | nodejs-docs | Fixed | 1:22.23.1-3.module+el8.10.0+24640+6eba5e6e | RHSA-2026:54371 |
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | Fixed | 1:24.18.0-3.module+el8.10.0+24639+56878497 | RHSA-2026:54530 |
| Red Hat Enterprise Linux 8 | nodejs-libs | Fixed | 1:24.18.0-3.module+el8.10.0+24639+56878497 | RHSA-2026:54530 |
| Red Hat Enterprise Linux 8 | nodejs-nodemon | Fixed | 0:3.1.14-2.module+el8.10.0+24640+6eba5e6e | RHSA-2026:54371 |
| Red Hat Enterprise Linux 8 | nodejs-packaging | Fixed | 0:2021.06-6.module+el8.10.0+24500+8eb51621 | RHSA-2026:54371 |
| Red Hat Enterprise Linux 8 | nodejs-packaging-bundler | Fixed | 0:2021.06-6.module+el8.10.0+24562+090c6525 | RHSA-2026:54530 |
| Red Hat Enterprise Linux 8 | npm | Fixed | 1:10.9.8-1.22.23.1.3.module+el8.10.0+24640+6eba5e6e | RHSA-2026:54371 |
| Red Hat Enterprise Linux 8 | pcs | Not affected | ||
| Red Hat Enterprise Linux 8 | pcs-snmp | Not affected | ||
| Red Hat Enterprise Linux 8 | v8-12.4-devel | Fixed | 3:12.4.254.21-1.22.23.1.3.module+el8.10.0+24640+6eba5e6e | RHSA-2026:54530 |
| Red Hat Enterprise Linux 8 | v8-13.6-devel | Fixed | 3:13.6.233.17-1.24.18.0.3.module+el8.10.0+24639+56878497 | RHSA-2026:54371 |
| Red Hat Enterprise Linux 7 | python-syspurpose | Not affected | ||
| Red Hat Enterprise Linux 7 | rhsm-gtk | Not affected | ||
| Red Hat Enterprise Linux 7 | subscription-manager | Not affected | ||
| Red Hat Enterprise Linux 7 | subscription-manager-cockpit | Not affected | ||
| Red Hat Enterprise Linux 7 | subscription-manager-gui | Not affected | ||
| Red Hat Enterprise Linux 7 | subscription-manager-initial-setup-addon | Not affected | ||
| Red Hat Enterprise Linux 7 | subscription-manager-migration | Not affected | ||
| Red Hat Enterprise Linux 7 | subscription-manager-plugin-container | Not affected | ||
| Red Hat Enterprise Linux 7 | subscription-manager-plugin-ostree | Not affected | ||
| Red Hat Enterprise Linux 7 | subscription-manager-rhsm | Not affected | ||
| Red Hat Enterprise Linux 7 | subscription-manager-rhsm-certificates | Not affected | ||
| AlmaLinux 10 | nodejs-docs | Fixed | 1:22.23.1-6.el10_2 | ALSA-2026:55541 |
| AlmaLinux 10 | nodejs24-docs | Fixed | 1:24.18.0-5.el10_2 | ALSA-2026:58819 |
| AlmaLinux 10 | nodejs24-npm | Fixed | 1:11.16.0-1.24.18.0.5.el10_2 | ALSA-2026:58819 |
| AlmaLinux 9 | nodejs | Fixed | 1:22.23.1-3.module_el9.8.0+291+0bb98cce | ALSA-2026:55603 |
| AlmaLinux 9 | nodejs-devel | Fixed | 1:24.18.0-6.module_el9.8.0+292+f4eaf8b2 | ALSA-2026:55601 |
| AlmaLinux 9 | nodejs-docs | Fixed | 1:24.18.0-6.module_el9.8.0+292+f4eaf8b2 | ALSA-2026:55601 |
| AlmaLinux 9 | nodejs-full-i18n | Fixed | 1:22.23.1-3.module_el9.8.0+291+0bb98cce | ALSA-2026:55603 |
| AlmaLinux 9 | nodejs-libs | Fixed | 1:24.18.0-6.module_el9.8.0+292+f4eaf8b2 | ALSA-2026:55601 |
| AlmaLinux 9 | nodejs-nodemon | Fixed | 3.1.14-3.module_el9.8.0+292+f4eaf8b2 | ALSA-2026:55601 |
| AlmaLinux 9 | nodejs-packaging | Fixed | 2021.06-6.module_el9.7.0+227+12323393 | ALSA-2026:55603 |
| AlmaLinux 9 | nodejs-packaging-bundler | Fixed | 2021.06-6.module_el9.7.0+209+ecf6523e | ALSA-2026:55601 |
| AlmaLinux 9 | npm | Fixed | 1:10.9.8-1.22.23.1.3.module_el9.8.0+291+0bb98cce | ALSA-2026:55603 |
| AlmaLinux 9 | v8-12.4-devel | Fixed | 3:12.4.254.21-1.22.23.1.3.module_el9.8.0+291+0bb98cce | ALSA-2026:55601 |
| AlmaLinux 9 | v8-13.6-devel | Fixed | 3:13.6.233.17-1.24.18.0.6.module_el9.8.0+292+f4eaf8b2 | ALSA-2026:55603 |
| AlmaLinux 8 | nodejs | Fixed | 1:24.18.0-3.module_el8.10.0+4250+09238ed4 | ALSA-2026:54530 |
| AlmaLinux 8 | nodejs-devel | Fixed | 1:24.18.0-3.module_el8.10.0+4250+09238ed4 | ALSA-2026:54530 |
| AlmaLinux 8 | nodejs-docs | Fixed | 1:24.18.0-3.module_el8.10.0+4250+09238ed4 | ALSA-2026:54530 |
| AlmaLinux 8 | nodejs-full-i18n | Fixed | 1:22.23.1-3.module_el8.10.0+4251+b427b8a5 | ALSA-2026:54371 |
| AlmaLinux 8 | nodejs-libs | Fixed | 1:22.23.1-3.module_el8.10.0+4251+b427b8a5 | ALSA-2026:54371 |
| AlmaLinux 8 | nodejs-nodemon | Fixed | 3.1.14-2.module_el8.10.0+4252+aedd4c30 | ALSA-2026:54371 |
| AlmaLinux 8 | nodejs-packaging | Fixed | 2021.06-6.module_el8.10.0+4158+e796f37f | ALSA-2026:54371 |
| AlmaLinux 8 | nodejs-packaging-bundler | Fixed | 2021.06-6.module_el8.10.0+4086+70facd4a | ALSA-2026:54530 |
| AlmaLinux 8 | npm | Fixed | 1:11.16.0-1.24.18.0.3.module_el8.10.0+4250+09238ed4 | ALSA-2026:54530 |
| AlmaLinux 8 | v8-12.4-devel | Fixed | 3:12.4.254.21-1.22.23.1.3.module_el8.10.0+4251+b427b8a5 | ALSA-2026:54530 |
| AlmaLinux 8 | v8-13.6-devel | Fixed | 3:13.6.233.17-1.24.18.0.3.module_el8.10.0+4250+09238ed4 | ALSA-2026:54371 |
| Rocky Linux 10 | nodejs22 | Fixed | 1:22.23.1-6.el10_2 | RLSA-2026:55541 |
| Rocky Linux 10 | nodejs24 | Fixed | 1:24.18.0-5.el10_2 | RLSA-2026:58819 |
| Rocky Linux 9 | nodejs | Fixed | 1:24.18.0-6.module+el9.8.0+40281+14cc6568 | RLSA-2026:55601 |
| Rocky Linux 9 | nodejs-nodemon | Fixed | 0:3.1.14-2.module+el9.8.0+40280+057606e8 | RLSA-2026:55603 |
| Rocky Linux 9 | nodejs-packaging | Fixed | 0:2021.06-6.module+el9.7.0+40052+e32ea525 | RLSA-2026:55601 |
| Rocky Linux 8 | nodejs | Fixed | 1:24.18.0-3.module+el8.10.0+40277+b1b3f89e | RLSA-2026:54530 |
| Rocky Linux 8 | nodejs-nodemon | Fixed | 0:3.1.14-2.module+el8.10.0+40278+50b003a3 | RLSA-2026:54371 |
| Rocky Linux 8 | nodejs-packaging | Fixed | 0:2021.06-6.module+el8.10.0+40171+8fa9c325 | RLSA-2026:54530 |
| npm library | brace-expansion | Fixed | 5.0.8 | GHSA-mh99-v99m-4gvg |
What the vendor says
As published in the CVE record by seal, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- juliangruber brace-expansion: affected: up to 5.0.7
References
- https://www.npmjs.com/package/brace-expansion
- https://github.com/juliangruber/brace-expansion
- https://github.com/juliangruber/brace-expansion/commit/a1bd33999ea75262c4749fff3bbb0d1372bd07b5
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.