CVE-2026-4867path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route…
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 path-to-regexp@0.1.12 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 path-to-regexp@0.1.13 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.
What to do
Fixed builds are available from Debian, npm: see the table below for the fixed version per release.
Red Hat has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | node-path-to-regexp | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | node-path-to-regexp | Not affected vulnerable_code_not_present | ||
| Debian 14 | node-path-to-regexp | Fixed | 1.0.1-1 | DEBIAN-CVE-2026-4867 |
| Debian 13 | node-path-to-regexp | Fixed | 1.0.1-1 | DEBIAN-CVE-2026-4867 |
| Debian 12 | node-path-to-regexp | Fixed | 1.0.1-1 | DEBIAN-CVE-2026-4867 |
| Red Hat Enterprise Linux 10 | linux-sgx | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | sgx-common | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | sgx-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | sgx-mpa | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | sgx-pccs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | sgx-pccs-admin | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | sgx-pckid-tool | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | tdx-qgs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gjs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | gjs-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | linux-sgx | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pcs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | pcs-snmp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | sgx-common | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | sgx-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | sgx-mpa | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | sgx-pccs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | sgx-pccs-admin | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | sgx-pckid-tool | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | tdx-qgs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mozjs60 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mozjs60-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | pcs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | pcs-snmp | Fix pending Fix deferred | ||
| npm library | path-to-regexp | Fixed | 0.1.10 | GHSA-9wv6-86v2-598j |
What the vendor says
As published in the CVE record by openjs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- path-to-regexp: affected: before 0.1.13; fixed in
0.1.13
References
- https://github.com/advisories/GHSA-9wv6-86v2-598j
- https://blakeembrey.com/posts/2024-09-web-redos
- https://cna.openjsf.org/security-advisories.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.