
CVE catalog
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-
- Severity
- High · CVSS 7.5
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.52% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-path-to-regexp | sid | 8.4.2-1 | fixed |
| Debian | node-path-to-regexp | forky | 8.4.2-1 | fixed |
| Debian | node-path-to-regexp | trixie | 6.3.0-1 | fixed |
| Debian | node-path-to-regexp | bookworm | 6.2.1-1 | fixed |
| Cpe | path-to-regexp | Not reported | 0.1.13 | fixed |
| Npm | path-to-regexp | Not reported | 0.1.13 | fixed |
| Npm | path-to-regexp | Not reported | 1.9.0 | fixed |
| Npm | path-to-regexp | Not reported | 0.1.10 | fixed |
| Npm | path-to-regexp | Not reported | 8.0.0 | fixed |
| Npm | path-to-regexp | Not reported | 3.3.0 | fixed |
| Npm | path-to-regexp | Not reported | 6.3.0 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-path-to-regexp | source | sid | 1.0.1-1 | not yet assigned | Not reported | Not reported |
| Debian | node-path-to-regexp | source | forky | 1.0.1-1 | not yet assigned | Not reported | Not reported |
| Debian | node-path-to-regexp | source | trixie | 1.0.1-1 | not yet assigned | Not reported | Not reported |
| Debian | node-path-to-regexp | source | bookworm | 1.0.1-1 | not yet assigned | Not reported | Not reported |
| Cpe | path-to-regexp | cpe | Not reported | 0.1.13 | Not reported | Not reported | Not reported |
| Npm | path-to-regexp | npm | Not reported | 0.1.13 | Not reported | Not reported | Not reported |
| Npm | path-to-regexp | npm | Not reported | 1.9.0 | Not reported | Not reported | Not reported |
| Npm | path-to-regexp | npm | Not reported | 0.1.10 | Not reported | Not reported | Not reported |
| Npm | path-to-regexp | npm | Not reported | 8.0.0 | Not reported | Not reported | Not reported |
| Npm | path-to-regexp | npm | Not reported | 3.3.0 | Not reported | Not reported | Not reported |
| Npm | path-to-regexp | npm | Not reported | 6.3.0 | Not reported | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [node-path-to-regexp]Fixed
Details (2)
6.2.1-1· all · bookwormFixed · Fixed:
1.0.1-1nvd · node-path-to-regexp · debian · bookworm; nvd · node-path-to-regexp · debian · 12
6.2.1-1· all · bookwormFixed · Fixed:
1.0.1-1nvd · node-path-to-regexp · debian · bookworm; nvd · node-path-to-regexp · debian · 12
[Debian 13 (Trixie)]
- [node-path-to-regexp]Fixed
Details (2)
6.3.0-1· all · trixieFixed · Fixed:
1.0.1-1nvd · node-path-to-regexp · debian · 13
6.3.0-1· all · trixieFixed · Fixed:
1.0.1-1nvd · node-path-to-regexp · debian · 13
Observed:
References
- [https://nvd.nist.gov/vuln/detail/CVE-2026-4867]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-4867]
- [https://osv.dev/vulnerability/GHSA-37ch-88jc-xwx2]
- [https://osv.dev/vulnerability/GHSA-9wv6-86v2-598j]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-4867]
- [https://security-tracker.debian.org/tracker/CVE-2026-4867]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4867.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]