Vulnerability
CVE-2026-102277
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.
358 advisories report this vulnerability, across 12 ecosystems.
Advisories in Wolfi
- CGA-363v-v865-548v
- CGA-3ffj-xcff-3h5f
- CGA-3fg3-fxq9-r385
- CGA-443v-98m9-57x3
- CGA-49f7-mc3x-696m
- CGA-4cr2-6gx6-2r3h
- CGA-4xrm-w49v-pr9j
- CGA-6rvj-42w3-hvpx
- CGA-73j6-9j5m-2gg7
- CGA-786m-966j-82g8
- CGA-7cwc-g997-w3qh
- CGA-7gc2-jg66-rf5g
- CGA-7vrp-2mx3-fqxr
- CGA-7wvf-2p53-6qc8
- CGA-98h4-f46j-mfhm
- CGA-9jj3-fw29-mp6g
- CGA-9vgc-2fw8-cj6v
- CGA-c9mp-qjx6-7ghq
- CGA-cm78-mrxx-94p3
- CGA-cv27-rwwj-qq78
- CGA-f6hg-jjvc-m6p6
- CGA-f77f-q66f-ghgq
- CGA-fqjj-q3c8-g8x8
- CGA-fxjv-249q-rmcv
- CGA-gf7v-xw63-gq64
- CGA-gjxj-6fxp-q3jv
- CGA-jppj-q4g8-fmcx
- CGA-jvw2-4r27-qpwp
- CGA-m525-3pfr-q6qh
- CGA-m7j5-x26v-5fm7
- CGA-mjp8-p3h2-6x5w
- CGA-mm57-xp22-jv2x
- CGA-mxrp-vjjx-4f24
- CGA-pc48-8wm9-7v7v
- CGA-pjmj-3gpf-hqpf
- CGA-q49h-427f-jvxq
- CGA-r5wx-xhqr-7wph
- CGA-v4q3-xx78-hj86
- CGA-vmg8-7rp2-6vhj
- CGA-wm2v-73xw-88v2
- CGA-wvrf-7335-5742
- CGA-x36x-xm42-h6qg
- CGA-x7xj-xjf8-q3gc
- CGA-xhg6-x46h-5r35
References
- https://github.com/juliangruber/brace-expansion/commit/33a5ef17b8d800bbfa8c52b14c39043b6aac1a96
- https://github.com/juliangruber/brace-expansion/commit/bdff773f98e5988616b7039cc9b508df5d640b22
- https://github.com/juliangruber/brace-expansion/commit/c55e67d8d8b1c56a2474afff15c2891166b2d364
- https://github.com/juliangruber/brace-expansion/commit/ffdfa3e3806bed17c0874b8f1439b084de354a7e
- https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-q2hr-2g5m-vwhr