{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-4867","id":"CVE-2026-4867","title":"path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters","description":"Impact:\n\nA 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 captu","descriptionLong":"Impact:\n\nA 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.\n\nPatches:\n\nUpgrade to path-to-regexp@0.1.13\n\nCustom regex patterns in route definitions (e.g., /:a-:b([^-/]+)-:c([^-/]+)) are not affected because they override the default capture group.\n\nWorkarounds:\n\nAll 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([^-/]+).\n\nIf paths cannot be rewritten and versions cannot be upgraded, another alternative is to limit the URL length.","published":"2026-03-26T16:16:25.501Z","updated":"2026-10-28T02:30:52.349197254Z","reserved":"2026-03-25T20:11:53.714Z","status":"Analyzed","rejected":false,"assigner":"openjs","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"openjs"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P","rating":"high","source":"GitHub"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"openjs"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"ce714d77-add3-4f53-aff5-83d477b104bb"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["path-to-regexp"],"affectedProducts":[{"vendor":"path-to-regexp","product":"path-to-regexp","defaultStatus":"unaffected","versions":[{"versionType":"semver","status":"affected","version":"0","lessThan":"0.1.13"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"path-to-regexp","purl":"pkg:npm/path-to-regexp","ranges":["<0.1.13",">=0.2.0 <1.9.0","<0.1.10",">=7.0.0 <8.0.0",">=2.0.0 <3.3.0",">=4.0.0 <6.3.0"],"fixed":["0.1.13","1.9.0","0.1.10","8.0.0","3.3.0","6.3.0"],"advisory":"GHSA-37ch-88jc-xwx2"}],"cwes":["CWE-1333"],"aliases":["CVE-2024-45296","GHSA-37ch-88jc-xwx2","GHSA-9wv6-86v2-598j"],"references":[{"url":"https://github.com/advisories/GHSA-9wv6-86v2-598j","tags":["Not Applicable","advisory"]},{"url":"https://blakeembrey.com/posts/2024-09-web-redos","tags":["Technical Description","web"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["Third Party Advisory","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4867.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4867","tags":["advisory"]},{"url":"https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-37ch-88jc-xwx2","tags":["web"]},{"url":"https://github.com/pillarjs/path-to-regexp","tags":["package"]},{"url":"https://github.com/pillarjs/path-to-regexp/releases/tag/v.0.1.13","tags":["web"]},{"url":"https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-9wv6-86v2-598j","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45296","tags":["advisory"]},{"url":"https://github.com/pillarjs/path-to-regexp/commit/29b96b4a1de52824e1ca0f49a701183cc4ed476f","tags":["web"]},{"url":"https://github.com/pillarjs/path-to-regexp/commit/60f2121e9b66b7b622cc01080df0aabda9eedee6","tags":["web"]},{"url":"https://github.com/pillarjs/path-to-regexp/commit/925ac8e3c5780b02f58cbd4e52f95da8ad2ac485","tags":["web"]},{"url":"https://github.com/pillarjs/path-to-regexp/commit/d31670ae8f6e69cbfd56e835742195b7d10942ef","tags":["web"]},{"url":"https://github.com/pillarjs/path-to-regexp/commit/f1253b47b347dcb909e3e80b0eb2649109e59894","tags":["web"]},{"url":"https://github.com/pillarjs/path-to-regexp/releases/tag/v6.3.0","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20250124-0001","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00527,"epssPercentile":0.45311,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-4867","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4867","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-4867","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-37ch-88jc-xwx2","ok":true,"note":"GHSA-37ch-88jc-xwx2"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-9wv6-86v2-598j","ok":true,"note":"GHSA-9wv6-86v2-598j"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-4867","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}