CVEfocus › CVE database › CVE-2026-4867

CVE-2026-4867path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route…

CVSS 7.5 HighEPSS 1.0% (higher than 62% of CVEs)Published 2026-03-26Updated 2026-03-26Assigner: openjs

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.

CWE-1333

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

4Fixed
24Fix pending
2Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04node-path-to-regexpNot affected
vulnerable_code_not_present
Ubuntu 25.10node-path-to-regexpNot affected
vulnerable_code_not_present
Debian 14node-path-to-regexpFixed1.0.1-1DEBIAN-CVE-2026-4867
Debian 13node-path-to-regexpFixed1.0.1-1DEBIAN-CVE-2026-4867
Debian 12node-path-to-regexpFixed1.0.1-1DEBIAN-CVE-2026-4867
Red Hat Enterprise Linux 10linux-sgxFix pending
Fix deferred
Red Hat Enterprise Linux 10sgx-commonFix pending
Fix deferred
Red Hat Enterprise Linux 10sgx-libsFix pending
Fix deferred
Red Hat Enterprise Linux 10sgx-mpaFix pending
Fix deferred
Red Hat Enterprise Linux 10sgx-pccsFix pending
Fix deferred
Red Hat Enterprise Linux 10sgx-pccs-adminFix pending
Fix deferred
Red Hat Enterprise Linux 10sgx-pckid-toolFix pending
Fix deferred
Red Hat Enterprise Linux 10tdx-qgsFix pending
Fix deferred
Red Hat Enterprise Linux 9gjsFix pending
Fix deferred
Red Hat Enterprise Linux 9gjs-develFix pending
Fix deferred
Red Hat Enterprise Linux 9linux-sgxFix pending
Fix deferred
Red Hat Enterprise Linux 9pcsFix pending
Fix deferred
Red Hat Enterprise Linux 9pcs-snmpFix pending
Fix deferred
Red Hat Enterprise Linux 9sgx-commonFix pending
Fix deferred
Red Hat Enterprise Linux 9sgx-libsFix pending
Fix deferred
Red Hat Enterprise Linux 9sgx-mpaFix pending
Fix deferred
Red Hat Enterprise Linux 9sgx-pccsFix pending
Fix deferred
Red Hat Enterprise Linux 9sgx-pccs-adminFix pending
Fix deferred
Red Hat Enterprise Linux 9sgx-pckid-toolFix pending
Fix deferred
Red Hat Enterprise Linux 9tdx-qgsFix pending
Fix deferred
Red Hat Enterprise Linux 8mozjs60Fix pending
Fix deferred
Red Hat Enterprise Linux 8mozjs60-develFix pending
Fix deferred
Red Hat Enterprise Linux 8pcsFix pending
Fix deferred
Red Hat Enterprise Linux 8pcs-snmpFix pending
Fix deferred
npm librarypath-to-regexpFixed0.1.10GHSA-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.

References

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.