{"id":"CVE-2026-4923","published":"2026-03-26T19:02:00Z","modified":"2026-03-27T13:58:03Z","title":"path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards","vendor":"path-to-regexp","product":"path-to-regexp","tier":"tail","description":{"text":"Impact:\n\nWhen 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.\n\nUnsafe examples:\n\n/*foo-*bar-:baz\n/*a-:b-*c-:d\n/x/*a-:b/*c/y\n\nSafe examples:\n\n/*foo-:bar\n/*foo-:bar-*baz\n\nPatches:\n\nUpgrade to version 8.4.0.\n\nWorkarounds:\n\nIf 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00393,"percentile":0.34172,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://cna.openjsf.org/security-advisories.html","tags":[]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":6.83},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"path-to-regexp","affectedVersions":[{"vendor":"path-to-regexp","product":"path-to-regexp","versions":[">= 8.0.0, < 8.4.0"]}],"fixedVersions":[{"vendor":"path-to-regexp","product":"path-to-regexp","versions":["8.4.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-27T13:46:47.360477Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"path-to-regexp","vulnerableRanges":[">=8.0.0, <8.4.0"],"patched":["8.4.0"],"from":["GHSA-27v5-c462-wpq7"],"provenance":"source"}],"summary":{"text":"The path-to-regexp library has a flaw that arises when a route path contains multiple wildcards, combined with at least one named parameter, so that the generated regular expression is prone to catastrophic backtracking. An attacker with network access and no authentication or user interaction can exploit it by sending crafted requests to an application that uses such a route pattern, though the vulnerable condition requires the second wildcard to appear somewhere other than the end of the path, and this can cause a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:03:46Z"},"euvd":{"id":"EUVD-2026-16322","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-52798","published":"2024-12-05","fixed":"0.1.12","kev":false},{"cve":"CVE-2026-4867","published":"2026-03-26","fixed":"0.1.13","kev":false},{"cve":"CVE-2024-45296","published":"2024-09-09","fixed":"8.0.0","kev":false,"link":{"from":"CVE-2024-45296","to":"CVE-2026-4923","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:path-to-regexp","fromFixed":"8.0.0","toFixed":"8.4.0","daysApart":563}]}},{"cve":"CVE-2026-4923","published":"2026-03-26","fixed":"8.4.0","kev":false},{"cve":"CVE-2026-4926","published":"2026-03-26","fixed":"8.4.0","kev":false}],"package":"npm:path-to-regexp"}}