Vulnerability
CVE-2026-45149
The brace-expansion library generates arbitrary strings containing a common prefix and suffix. From 5.0.0 to before 5.0.6, the max option was being applied too late. When expanding a single large numeric range like {1..10000000}, the sequence generation loop generates all 10 million intermediate elements before the max limit is applied With max=10, the output is correctly limited to 10 items, but the process still allocates ~505 MB and spends ~800ms building the full intermediate array. This vulnerability is fixed in 5.0.6.
114 advisories report this vulnerability, across 6 ecosystems.
Advisories in Wolfi
- CGA-26h5-v96x-5v92
- CGA-3qc6-7j92-mrp7
- CGA-4g85-g445-fvvr
- CGA-7mwq-j22r-v3pr
- CGA-7xm7-w44x-79jg
- CGA-86cq-p4j7-5372
- CGA-86rm-85p7-mg8h
- CGA-cgg5-p434-c7vg
- CGA-f93q-hgc9-7m5g
- CGA-fjjg-xx67-83q8
- CGA-gp8f-4j7c-j42v
- CGA-gr65-2m38-9ppf
- CGA-hf4f-w99j-26cr
- CGA-hmgp-r26q-75rv
- CGA-j7qj-r8cf-xc8g
- CGA-jrxj-3pvc-h4h4
- CGA-mxp7-9v8v-c75j
- CGA-p2q3-mw2h-v6ff
- CGA-p3ff-x53m-5hj2
- CGA-pjf7-pqj3-fjch
- CGA-q47w-pjp5-jc6m
- CGA-r542-4hh2-5xjg
- CGA-r5cw-99j8-c243
- CGA-rwp6-w2ph-2g5w
- CGA-w8ww-xw76-2mp6
- CGA-x6rh-4p36-qfv8