CVE-2026-4923
MEDIUM 5.9CVSS 3.1path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards
Impact:
When 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.
Unsafe examples:
/foo-bar-:baz
/a-:b-c-:d
/x/*a-:b/*c/y
Safe examples:
/*foo-:bar
/foo-:bar-baz
Patches:
Upgrade to version 8.4.0.
Workarounds:
If 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.
- Published
- 26 Mar 2026
- Last modified
- 10 Sep 2026
- Assigned by
- ce714d77-add3-4f53-aff5-83d477b104bb
- NVD status
- Analyzed
- Weakness
- CWE-1333
- Also known as
- GHSA-27v5-c462-wpq7
- Sources
- NVDJSONOSV GHSA-27v5-c462-wpq7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | ce714d77-add3-4f53-aff5-83d477b104bb (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pillarjs | path-to-regexpcpe:2.3:a:pillarjs:path-to-regexp:*:*:*:*:*:node.js:*:* |
>= 8.0.0, < 8.4.0 | 8.4.0 |
| OSV | npm | path-to-regexp | >= 8.0.0, < 8.4.0 | 8.4.0 |
References
- https://cna.openjsf.org/security-advisories.html · Third Party Advisory, WEB
- https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-27v5-c462-wpq7 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-4923 · ADVISORY
- https://github.com/pillarjs/path-to-regexp · PACKAGE
- https://makenowjust-labs.github.io/recheck/playground · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 26 Mar 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 27 Mar 2026)