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-

[CVE catalog]

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.

DistributionPackageReleaseVersionStatus
Debiannode-path-to-regexpsid8.4.2-1fixed
Debiannode-path-to-regexpforky8.4.2-1fixed
Debiannode-path-to-regexptrixie6.3.0-1fixed
Debiannode-path-to-regexpbookworm6.2.1-1fixed
Cpepath-to-regexpNot reported0.1.13fixed
Npmpath-to-regexpNot reported0.1.13fixed
Npmpath-to-regexpNot reported1.9.0fixed
Npmpath-to-regexpNot reported0.1.10fixed
Npmpath-to-regexpNot reported8.0.0fixed
Npmpath-to-regexpNot reported3.3.0fixed
Npmpath-to-regexpNot reported6.3.0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-path-to-regexpsourcesid1.0.1-1not yet assignedNot reportedNot reported
Debiannode-path-to-regexpsourceforky1.0.1-1not yet assignedNot reportedNot reported
Debiannode-path-to-regexpsourcetrixie1.0.1-1not yet assignedNot reportedNot reported
Debiannode-path-to-regexpsourcebookworm1.0.1-1not yet assignedNot reportedNot reported
Cpepath-to-regexpcpeNot reported0.1.13Not reportedNot reportedNot reported
Npmpath-to-regexpnpmNot reported0.1.13Not reportedNot reportedNot reported
Npmpath-to-regexpnpmNot reported1.9.0Not reportedNot reportedNot reported
Npmpath-to-regexpnpmNot reported0.1.10Not reportedNot reportedNot reported
Npmpath-to-regexpnpmNot reported8.0.0Not reportedNot reportedNot reported
Npmpath-to-regexpnpmNot reported3.3.0Not reportedNot reportedNot reported
Npmpath-to-regexpnpmNot reported6.3.0Not reportedNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 6.2.1-1 · all · bookworm

      Fixed · Fixed: 1.0.1-1

      nvd · node-path-to-regexp · debian · bookworm; nvd · node-path-to-regexp · debian · 12

    • 6.2.1-1 · all · bookworm

      Fixed · Fixed: 1.0.1-1

      nvd · node-path-to-regexp · debian · bookworm; nvd · node-path-to-regexp · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 6.3.0-1 · all · trixie

      Fixed · Fixed: 1.0.1-1

      nvd · node-path-to-regexp · debian · 13

    • 6.3.0-1 · all · trixie

      Fixed · Fixed: 1.0.1-1

      nvd · node-path-to-regexp · debian · 13

Observed:

References