{"id":"CVE-2026-4923","aliases":["CVE-2026-4923","GHSA-27v5-c462-wpq7"],"related":[],"kind":"vulnerability","state":"published","title":"path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","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\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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Impacto:\n\nAl usar múltiples comodines, combinados con al menos un parámetro, se puede generar una expresión regular que es vulnerable a ReDoS. Esta vulnerabilidad de retroceso requiere que el segundo comodín esté en un lugar distinto al final de la ruta.\n\nEjemplos no seguros:\n\n/*foo-*bar-:baz\n/*a-:b-*c-:d\n/x/*a-:b/*c/y\n\nEjemplos seguros:\n\n/*foo-:bar\n/*foo-:bar-*baz\n\nParches:\n\nActualice a la versión 8.4.0.\n\nSoluciones alternativas:\n\nSi está utilizando múltiples parámetros comodín, puede verificar la salida de la expresión regular con una herramienta como https://makenowjust-labs.github.io/recheck/playground/ para confirmar si una ruta es vulnerable.","source":"nvd"}],"published":"2026-03-26T19:02:00.729Z","modified":"2026-09-10T03:50:36.174Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"type":"semver","introduced":"8.0.0","fixed":"8.4.0","status":"affected"},{"type":"semver","version":"8.4.0","status":"unaffected"}],"vendor":"path-to-regexp","product":"path-to-regexp","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"8.4.0"}],"ecosystem":"npm","package":"path-to-regexp","purl":"pkg:npm/path-to-regexp","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"8.0.0","fixed":"8.4.0"}],"vendor":"pillarjs","product":"path-to-regexp","cpe":"cpe:2.3:a:pillarjs:path-to-regexp:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://cna.openjsf.org/security-advisories.html","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-27v5-c462-wpq7","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4923","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pillarjs/path-to-regexp","tags":["package"],"sources":["ghsa"]},{"url":"https://makenowjust-labs.github.io/recheck/playground","tags":["web"],"sources":["ghsa"]}],"credits":["blakeembrey","UlisesGascon"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-27T13:46:47.360Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-4923","url":"https://www.cve.org/CVERecord?id=CVE-2026-4923","licence":"CVE Terms of Use","modified":"2026-03-27T13:58:03.925Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-27v5-c462-wpq7","url":"https://github.com/advisories/GHSA-27v5-c462-wpq7","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:36.174Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-4923","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4923","licence":"Public domain","modified":"2026-06-17T10:57:27.740Z"}],"updatedAt":"2026-11-25T22:59:17.110Z","epss":{"score":0.00393,"percentile":0.35539,"date":"2026-12-01T12:00:22.000Z"}}