{"id":"GHSA-27v5-c462-wpq7","revision":"51d8b0d04edd46edad4d9a98dc343336","records":[{"revision":"51d8b0d04edd46edad4d9a98dc343336","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-27v5-c462-wpq7","aliases":["CVE-2026-4923"],"title":"path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards","description":"### 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\n**Unsafe examples:**\n\n```\n/*foo-*bar-:baz\n/*a-:b-*c-:d\n/x/*a-:b/*c/y\n```\n\n**Safe examples:**\n\n```\n/*foo-:bar\n/*foo-:bar-*baz\n```\n\n### Patches\n\nUpgrade to version `8.4.0`.\n\n### Workarounds\n\nIf developers are using multiple wildcard parameters, they can check the regex output with a tool such as https://makenowjust-labs.github.io/recheck/playground/ to confirm whether a path is vulnerable.","state":0,"publishedAt":"2026-03-27T22:23:52+00:00","modifiedAt":"2026-09-10T03:50:36.1748568+00:00","affected":[{"ecosystem":"npm","name":"path-to-regexp","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"8.0.0"},{"kind":"fixed","version":"8.4.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-27v5-c462-wpq7","https://nvd.nist.gov/vuln/detail/CVE-2026-4923","https://cna.openjsf.org/security-advisories.html","https://github.com/pillarjs/path-to-regexp","https://makenowjust-labs.github.io/recheck/playground"],"sourceUrl":"https://github.com/advisories/GHSA-27v5-c462-wpq7","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-27v5-c462-wpq7","identifiers":["GHSA-27v5-c462-wpq7","CVE-2026-4923"]},"retained":false,"historicalAffected":[]}],"coverage":[]}