Description
Impact:
When using multiple wildcards, combined with at least one parameter, a regular expression can be generated that is vulnerable to ReDoS. This backtracking vulnerability requires the second wildcard to be somewhere other than the end of the path.
Unsafe examples:
/*foo-*bar-:baz
/*a-:b-*c-:d
/x/*a-:b/*c/y
Safe examples:
/*foo-:bar
/*foo-:bar-*baz
Patches:
Upgrade to version 8.4.0.
Workarounds:
If you are using multiple wildcard parameters, you can check the regex output with a tool such as https://makenowjust-labs.github.io/recheck/playground/ to confirm whether a path is vulnerable.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| path-to-regexp | path-to-regexp | 8.0.0 – < 8.4.0 | 8.4.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-path-to-regexp | 8.4.0-1 | — |
| Debian 13 | node-path-to-regexp | No fix yet | — |
| Debian 12 | node-path-to-regexp | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | code-server | 4.112.0-r2 | — |
| Wolfi rolling | langfuse-3-compat | 3.225.7-r6 | — |
| Wolfi rolling | langfuse-3-worker | 3.179.1-r3 | — |
| Wolfi rolling | saf | 1.6.0-r0 | — |
| Wolfi rolling | thingsboard-tb-web-ui +1 | 4.3.1.1-r0 | — |
| Wolfi rolling | tileserver-gl | 5.5.0-r12 | — |
| Wolfi rolling | vitess-23 | 23.0.3-r12 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | path-to-regexp | >= 8.0.0, < 8.4.0 | 8.4.0 | GHSA-27v5-c462-wpq7 |
Advisories 2
- WID-SEC-2026-3046 IBM Concert: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 10, 2026
- WID-SEC-2026-1407 IBM App Connect Enterprise Certified Container: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 3, 2026