Vulnerability · Published Jul 23, 2026 · Assigned by seal
CVE-2026-14257brace-expansion DoS via unbounded expansion length causing an out-of-memory process crash
High 7.5
In plain English
A high-severity uncontrolled resource consumption in brace-expansion from juliangruber. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | nodejs | 1:22.23.1-6.el10_2 | ALSA-2026:55541 |
| AlmaLinux:8 | nodejs | 1:24.18.0-3.module_el8.10.0+4250+09238ed4 | ALSA-2026:54371 |
| AlmaLinux:8 | nodejs | 1:22.23.1-3.module_el8.10.0+4251+b427b8a5 | ALSA-2026:54530 |
| AlmaLinux:9 | nodejs | 1:22.23.1-3.module_el9.8.0+291+0bb98cce | ALSA-2026:55601 |
| AlmaLinux:9 | nodejs | 1:24.18.0-6.module_el9.8.0+292+f4eaf8b2 | ALSA-2026:55603 |
| AlmaLinux:10 | nodejs-devel | 1:22.23.1-6.el10_2 | ALSA-2026:55541 |
| AlmaLinux:8 | nodejs-devel | 1:22.23.1-3.module_el8.10.0+4251+b427b8a5 | ALSA-2026:54530 |
| AlmaLinux:8 | nodejs-devel | 1:24.18.0-3.module_el8.10.0+4250+09238ed4 | ALSA-2026:54371 |
| AlmaLinux:9 | nodejs-devel | 1:22.23.1-3.module_el9.8.0+291+0bb98cce | ALSA-2026:55601 |
| AlmaLinux:9 | nodejs-devel | 1:24.18.0-6.module_el9.8.0+292+f4eaf8b2 | ALSA-2026:55603 |
| AlmaLinux:10 | nodejs-docs | 1:22.23.1-6.el10_2 | ALSA-2026:55541 |
| AlmaLinux:8 | nodejs-docs | 1:22.23.1-3.module_el8.10.0+4251+b427b8a5 | ALSA-2026:54530 |
| AlmaLinux:8 | nodejs-docs | 1:24.18.0-3.module_el8.10.0+4250+09238ed4 | ALSA-2026:54371 |
| AlmaLinux:9 | nodejs-docs | 1:22.23.1-3.module_el9.8.0+291+0bb98cce | ALSA-2026:55601 |
| AlmaLinux:9 | nodejs-docs | 1:24.18.0-6.module_el9.8.0+292+f4eaf8b2 | ALSA-2026:55603 |
| AlmaLinux:10 | nodejs-full-i18n | 1:22.23.1-6.el10_2 | ALSA-2026:55541 |
| AlmaLinux:8 | nodejs-full-i18n | 1:24.18.0-3.module_el8.10.0+4250+09238ed4 | ALSA-2026:54371 |
| AlmaLinux:8 | nodejs-full-i18n | 1:22.23.1-3.module_el8.10.0+4251+b427b8a5 | ALSA-2026:54530 |
| AlmaLinux:9 | nodejs-full-i18n | 1:22.23.1-3.module_el9.8.0+291+0bb98cce | ALSA-2026:55601 |
| AlmaLinux:9 | nodejs-full-i18n | 1:24.18.0-6.module_el9.8.0+292+f4eaf8b2 | ALSA-2026:55603 |
| AlmaLinux:10 | nodejs-libs | 1:22.23.1-6.el10_2 | ALSA-2026:55541 |
| AlmaLinux:8 | nodejs-libs | 1:24.18.0-3.module_el8.10.0+4250+09238ed4 | ALSA-2026:54371 |
| AlmaLinux:8 | nodejs-libs | 1:22.23.1-3.module_el8.10.0+4251+b427b8a5 | ALSA-2026:54530 |
| AlmaLinux:9 | nodejs-libs | 1:22.23.1-3.module_el9.8.0+291+0bb98cce | ALSA-2026:55601 |
| AlmaLinux:9 | nodejs-libs | 1:24.18.0-6.module_el9.8.0+292+f4eaf8b2 | ALSA-2026:55603 |
| AlmaLinux:8 | nodejs-nodemon | 3.1.14-2.module_el8.10.0+4252+aedd4c30 | ALSA-2026:54530 |
| AlmaLinux:8 | nodejs-nodemon | 3.1.14-2.module_el8.10.0+4250+09238ed4 | ALSA-2026:54371 |
| AlmaLinux:9 | nodejs-nodemon | 3.1.14-3.module_el9.8.0+292+f4eaf8b2 | ALSA-2026:55603 |
| AlmaLinux:9 | nodejs-nodemon | 3.1.14-2.module_el9.8.0+291+0bb98cce | ALSA-2026:55601 |
| AlmaLinux:10 | nodejs-npm | 1:10.9.8-1.22.23.1.6.el10_2 | ALSA-2026:55541 |
| AlmaLinux:8 | nodejs-packaging | 2021.06-6.module_el8.10.0+4086+70facd4a | ALSA-2026:54371 |
| AlmaLinux:8 | nodejs-packaging | 2021.06-6.module_el8.10.0+4158+e796f37f | ALSA-2026:54530 |
| AlmaLinux:9 | nodejs-packaging | 2021.06-6.module_el9.7.0+227+12323393 | ALSA-2026:55601 |
| AlmaLinux:9 | nodejs-packaging | 2021.06-6.module_el9.7.0+209+ecf6523e | ALSA-2026:55603 |
| AlmaLinux:8 | nodejs-packaging-bundler | 2021.06-6.module_el8.10.0+4086+70facd4a | ALSA-2026:54371 |
| AlmaLinux:8 | nodejs-packaging-bundler | 2021.06-6.module_el8.10.0+4158+e796f37f | ALSA-2026:54530 |
| AlmaLinux:9 | nodejs-packaging-bundler | 2021.06-6.module_el9.7.0+227+12323393 | ALSA-2026:55601 |
| AlmaLinux:9 | nodejs-packaging-bundler | 2021.06-6.module_el9.7.0+209+ecf6523e | ALSA-2026:55603 |
| AlmaLinux:10 | nodejs24 | 1:24.18.0-5.el10_2 | ALSA-2026:58819 |
| AlmaLinux:10 | nodejs24-devel | 1:24.18.0-5.el10_2 | ALSA-2026:58819 |
| AlmaLinux:10 | nodejs24-docs | 1:24.18.0-5.el10_2 | ALSA-2026:58819 |
| AlmaLinux:10 | nodejs24-full-i18n | 1:24.18.0-5.el10_2 | ALSA-2026:58819 |
| AlmaLinux:10 | nodejs24-libs | 1:24.18.0-5.el10_2 | ALSA-2026:58819 |
| AlmaLinux:10 | nodejs24-npm | 1:11.16.0-1.24.18.0.5.el10_2 | ALSA-2026:58819 |
| AlmaLinux:8 | npm | 1:11.16.0-1.24.18.0.3.module_el8.10.0+4250+09238ed4 | ALSA-2026:54371 |
| AlmaLinux:8 | npm | 1:10.9.8-1.22.23.1.3.module_el8.10.0+4251+b427b8a5 | ALSA-2026:54530 |
| AlmaLinux:9 | npm | 1:10.9.8-1.22.23.1.3.module_el9.8.0+291+0bb98cce | ALSA-2026:55601 |
| AlmaLinux:9 | npm | 1:11.16.0-1.24.18.0.6.module_el9.8.0+292+f4eaf8b2 | ALSA-2026:55603 |
| AlmaLinux:8 | v8-12.4-devel | 3:12.4.254.21-1.22.23.1.3.module_el8.10.0+4251+b427b8a5 | ALSA-2026:54530 |
| AlmaLinux:9 | v8-12.4-devel | 3:12.4.254.21-1.22.23.1.3.module_el9.8.0+291+0bb98cce | ALSA-2026:55601 |
| AlmaLinux:8 | v8-13.6-devel | 3:13.6.233.17-1.24.18.0.3.module_el8.10.0+4250+09238ed4 | ALSA-2026:54371 |
| AlmaLinux:9 | v8-13.6-devel | 3:13.6.233.17-1.24.18.0.6.module_el9.8.0+292+f4eaf8b2 | ALSA-2026:55603 |
| Debian:12 | node-brace-expansion | no fix listed | DEBIAN-CVE-2026-14257 |
| Debian:13 | node-brace-expansion | no fix listed | DEBIAN-CVE-2026-14257 |
| Debian:14 | node-brace-expansion | no fix listed | DEBIAN-CVE-2026-14257 |
| Rocky Linux:8 | nodejs | 1:24.18.0-3.module+el8.10.0+40277+b1b3f89e | RLSA-2026:54371 |
| Rocky Linux:8 | nodejs | 1:22.23.1-3.module+el8.10.0+40278+50b003a3 | RLSA-2026:54530 |
| Rocky Linux:9 | nodejs | 1:24.18.0-6.module+el9.8.0+40281+14cc6568 | RLSA-2026:55603 |
| Rocky Linux:9 | nodejs | 1:22.23.1-3.module+el9.8.0+40280+057606e8 | RLSA-2026:55601 |
| Rocky Linux:8 | nodejs-nodemon | 0:3.1.14-2.module+el8.10.0+40277+b1b3f89e | RLSA-2026:54371 |
| Rocky Linux:8 | nodejs-nodemon | 0:3.1.14-2.module+el8.10.0+40278+50b003a3 | RLSA-2026:54530 |
| Rocky Linux:8 | nodejs-nodemon | 0:3.1.14-2.module+el8.10.0+40277+b1b3f89e | RLSA-2026:54530 |
| Rocky Linux:8 | nodejs-nodemon | 0:3.1.14-2.module+el8.10.0+40278+50b003a3 | RLSA-2026:54371 |
| Rocky Linux:9 | nodejs-nodemon | 0:3.1.14-3.module+el9.8.0+40281+14cc6568 | RLSA-2026:55603 |
| Rocky Linux:9 | nodejs-nodemon | 0:3.1.14-2.module+el9.8.0+40264+d9b257bb | RLSA-2026:55601 |
| Rocky Linux:9 | nodejs-nodemon | 0:3.1.14-2.module+el9.8.0+40280+057606e8 | RLSA-2026:55601 |
| Rocky Linux:8 | nodejs-packaging | 0:2021.06-6.module+el8.10.0+40172+38f6fdd1 | RLSA-2026:54371 |
| Rocky Linux:8 | nodejs-packaging | 0:2021.06-6.module+el8.10.0+40172+38f6fdd1 | RLSA-2026:54530 |
| Rocky Linux:8 | nodejs-packaging | 0:2021.06-6.module+el8.10.0+40171+8fa9c325 | RLSA-2026:54530 |
| Rocky Linux:8 | nodejs-packaging | 0:2021.06-6.module+el8.10.0+40048+6d99f608 | RLSA-2026:54530 |
| Rocky Linux:8 | nodejs-packaging | 0:2021.06-6.module+el8.10.0+40048+6d99f608 | RLSA-2026:54371 |
| Rocky Linux:8 | nodejs-packaging | 0:2021.06-6.module+el8.10.0+40171+8fa9c325 | RLSA-2026:54371 |
| Rocky Linux:9 | nodejs-packaging | 0:2021.06-6.module+el9.7.0+40153+4d595597 | RLSA-2026:55601 |
| Rocky Linux:9 | nodejs-packaging | 0:2021.06-6.module+el9.7.0+40165+d075e3f2 | RLSA-2026:55601 |
| Rocky Linux:9 | nodejs-packaging | 0:2021.06-6.module+el9.8.0+40164+8921ab53 | RLSA-2026:55601 |
| Rocky Linux:9 | nodejs-packaging | 0:2021.06-6.module+el9.7.0+40052+e32ea525 | RLSA-2026:55601 |
| Rocky Linux:9 | nodejs-packaging | 0:2021.06-6.module+el9.7.0+40165+d075e3f2 | RLSA-2026:55603 |
| Rocky Linux:9 | nodejs-packaging | 0:2021.06-6.module+el9.8.0+40164+8921ab53 | RLSA-2026:55603 |
| Rocky Linux:9 | nodejs-packaging | 0:2021.06-6.module+el9.7.0+40052+e32ea525 | RLSA-2026:55603 |
| Rocky Linux:9 | nodejs-packaging | 0:2021.06-6.module+el9.7.0+40153+4d595597 | RLSA-2026:55603 |
| Rocky Linux:10 | nodejs22 | 1:22.23.1-6.el10_2 | RLSA-2026:55541 |
| Rocky Linux:10 | nodejs24 | 1:24.18.0-5.el10_2 | RLSA-2026:58819 |
| Ubuntu:22.04:LTS | node-brace-expansion | no fix listed | UBUNTU-CVE-2026-14257 |
| Ubuntu:24.04:LTS | node-brace-expansion | no fix listed | UBUNTU-CVE-2026-14257 |
| Ubuntu:26.04:LTS | node-brace-expansion | no fix listed | UBUNTU-CVE-2026-14257 |
| Ubuntu:26.10 | node-brace-expansion | no fix listed | UBUNTU-CVE-2026-14257 |
| npm | brace-expansion | 5.0.8 | GHSA-mh99-v99m-4gvg |
| npm | brace-expansion | 1.1.17 | GHSA-mh99-v99m-4gvg |
| npm | brace-expansion | 2.1.3 | GHSA-mh99-v99m-4gvg |
| npm | brace-expansion | 3.0.3 | GHSA-mh99-v99m-4gvg |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| juliangruber | brace-expansion | 0 – through 5.0.7 |
Weakness: CWE-400, CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H