Vulnerability
CVE-2026-4867
Impact: A bad regular expression is generated any time you have three or more parameters within a single segment, separated by something that is not a period (.). For example, /:a-:b-:c or /:a-:b-:c-:d. The backtrack protection added in [email protected] only prevents ambiguity for two parameters. With three or more, the generated lookahead does not block single separator characters, so capture groups overlap and cause catastrophic backtracking. Patches: Upgrade to [email protected] Custom regex patterns in route definitions (e.g., /:a-:b([^-/]+)-:c([^-/]+)) are not affected because they override the default capture group. Workarounds: All versions can be patched by providing a custom regular expression for parameters after the first in a single segment. As long as the custom regular expression does not match the text before the parameter, you will be safe. For example, change /:a-:b-:c to /:a-:b([^-/]+)-:c([^-/]+). If paths cannot be rewritten and versions cannot be upgraded, another alternative is to limit the URL length.
163 advisories report this vulnerability, across 6 ecosystems.
Advisories in Wolfi
- CGA-23fp-mxh5-798f
- CGA-2fjm-p8xm-vp27
- CGA-53c4-78hf-3f8v
- CGA-5j7q-8h9v-wf2r
- CGA-6rv9-3478-fw6g
- CGA-7ch7-rxqm-cqfm
- CGA-7q72-qp5x-wmv7
- CGA-7r98-gffj-f552
- CGA-8qr2-wfwg-wr4m
- CGA-958g-wh3w-wcq5
- CGA-99xh-8w4j-c3rx
- CGA-cv56-xgg6-pv34
- CGA-f4vh-r2mj-58rr
- CGA-hhgx-vvqm-9rfv
- CGA-jrhw-8774-rx2v
- CGA-p7h2-6vp5-h63r
- CGA-phqq-mhvm-frq7
- CGA-qcjv-779c-668f
- CGA-qh73-f3p2-g7xh
- CGA-qp5x-4m42-f2xv
- CGA-r7h2-rvrq-5h7f
- CGA-r8pq-cg8g-4h47
- CGA-rrp7-8pm5-5p4f
- CGA-vm85-9wx7-fhpm
- CGA-wjmr-v4jg-8356
- CGA-wp39-4jcr-qrhc
- CGA-wpfv-8fcm-9jrg
- CGA-wwxg-mp8h-hf6m
- CGA-xf3q-4v9q-66gp
- CGA-xjp9-qx23-5crm