Vulnerability · Published Sep 28, 2026 · Assigned by GitHub_M

CVE-2026-102277brace-expansion: Quadratic-time expansion of the `{a},b}` rewrite causes CPU denial of service

Medium 5.3

In plain English

A medium-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.4% (higher than 37% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.4%top 62.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

The brace-expansion library generates arbitrary strings containing a common prefix and suffix. Prior to 1.1.21, 2.1.7, 3.0.9, and 5.0.12, the expand function handles untrusted {a},b}-shaped patterns with many trailing closing braces by restarting its scan once for each trailing closing brace. The successive full-input rescans with linear working-string growth cause quadratic CPU time and memory pressure that can block the Node.js event loop. The process eventually recovers, making the impact a recoverable CPU denial of service. This issue is fixed in versions 1.1.21, 2.1.7, 3.0.9, and 5.0.12.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8nodejs1:24.22.1-1.module_el8.10.0+4331+0683c9c1ALSA-2026:92376
AlmaLinux:9nodejs1:24.22.1-3.module_el9.8.0+333+788f3075ALSA-2026:92378
AlmaLinux:8nodejs-devel1:24.22.1-1.module_el8.10.0+4331+0683c9c1ALSA-2026:92376
AlmaLinux:9nodejs-devel1:24.22.1-3.module_el9.8.0+333+788f3075ALSA-2026:92378
AlmaLinux:8nodejs-docs1:24.22.1-1.module_el8.10.0+4331+0683c9c1ALSA-2026:92376
AlmaLinux:9nodejs-docs1:24.22.1-3.module_el9.8.0+333+788f3075ALSA-2026:92378
AlmaLinux:8nodejs-full-i18n1:24.22.1-1.module_el8.10.0+4331+0683c9c1ALSA-2026:92376
AlmaLinux:9nodejs-full-i18n1:24.22.1-3.module_el9.8.0+333+788f3075ALSA-2026:92378
AlmaLinux:8nodejs-libs1:24.22.1-1.module_el8.10.0+4331+0683c9c1ALSA-2026:92376
AlmaLinux:9nodejs-libs1:24.22.1-3.module_el9.8.0+333+788f3075ALSA-2026:92378
AlmaLinux:8nodejs-nodemon3.1.14-2.module_el8.10.0+4250+09238ed4ALSA-2026:92376
AlmaLinux:9nodejs-nodemon3.1.14-3.module_el9.8.0+292+f4eaf8b2ALSA-2026:92378
AlmaLinux:8nodejs-packaging2021.06-6.module_el8.10.0+4086+70facd4aALSA-2026:92376
AlmaLinux:9nodejs-packaging2021.06-6.module_el9.7.0+209+ecf6523eALSA-2026:92378
AlmaLinux:8nodejs-packaging-bundler2021.06-6.module_el8.10.0+4086+70facd4aALSA-2026:92376
AlmaLinux:9nodejs-packaging-bundler2021.06-6.module_el9.7.0+209+ecf6523eALSA-2026:92378
AlmaLinux:8npm1:11.19.1-1.24.22.1.1.module_el8.10.0+4331+0683c9c1ALSA-2026:92376
AlmaLinux:9npm1:11.19.1-1.24.22.1.3.module_el9.8.0+333+788f3075ALSA-2026:92378
AlmaLinux:8v8-13.6-devel3:13.6.233.17-1.24.22.1.1.module_el8.10.0+4331+0683c9c1ALSA-2026:92376
AlmaLinux:9v8-13.6-devel3:13.6.233.17-1.24.22.1.3.module_el9.8.0+333+788f3075ALSA-2026:92378
Debian:12node-brace-expansionno fix listedDEBIAN-CVE-2026-102277
Debian:13node-brace-expansionno fix listedDEBIAN-CVE-2026-102277
Debian:14node-brace-expansion2.1.7+~1.1.2-1DEBIAN-CVE-2026-102277
Rocky Linux:9nodejs1:24.22.1-3.module+el9.8.0+40401+e24b8c95RLSA-2026:92378
Rocky Linux:8nodejs-nodemon0:3.1.14-2.module+el8.10.0+40278+50b003a3RLSA-2026:92376
Rocky Linux:8nodejs-nodemon0:3.1.14-2.module+el8.10.0+40277+b1b3f89eRLSA-2026:92376
Rocky Linux:9nodejs-nodemon0:3.1.14-3.module+el9.8.0+40281+14cc6568RLSA-2026:92378
Rocky Linux:8nodejs-packaging0:2021.06-6.module+el8.10.0+40172+38f6fdd1RLSA-2026:92376
Rocky Linux:8nodejs-packaging0:2021.06-6.module+el8.10.0+40048+6d99f608RLSA-2026:92376
Rocky Linux:8nodejs-packaging0:2021.06-6.module+el8.10.0+40171+8fa9c325RLSA-2026:92376
Rocky Linux:9nodejs-packaging0:2021.06-6.module+el9.7.0+40153+4d595597RLSA-2026:92378
Rocky Linux:9nodejs-packaging0:2021.06-6.module+el9.7.0+40165+d075e3f2RLSA-2026:92378
Rocky Linux:9nodejs-packaging0:2021.06-6.module+el9.8.0+40164+8921ab53RLSA-2026:92378
Rocky Linux:9nodejs-packaging0:2021.06-6.module+el9.7.0+40052+e32ea525RLSA-2026:92378
Ubuntu:22.04:LTSnode-brace-expansionno fix listedUBUNTU-CVE-2026-102277
Ubuntu:24.04:LTSnode-brace-expansionno fix listedUBUNTU-CVE-2026-102277
Ubuntu:26.04:LTSnode-brace-expansionno fix listedUBUNTU-CVE-2026-102277
Ubuntu:26.10node-brace-expansionno fix listedUBUNTU-CVE-2026-102277
npmbrace-expansion1.1.21GHSA-q2hr-2g5m-vwhr
npmbrace-expansion2.1.7GHSA-q2hr-2g5m-vwhr
npmbrace-expansion3.0.9GHSA-q2hr-2g5m-vwhr
npmbrace-expansion5.0.12GHSA-q2hr-2g5m-vwhr

Affected products (as reported)

VendorProductVersions
juliangruber brace-expansion >= 4.0.0, < 5.0.12>= 3.0.0, < 3.0.9>= 2.0.0, < 2.1.7< 1.1.21

Weakness: CWE-400, CWE-407 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References