# CVE-2026-4923: path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards

- Severity: Medium 5.9 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-03-26T19:02:00.729Z
- Modified: 2026-09-10T03:50:36.174Z
- Also known as: GHSA-27v5-c462-wpq7
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: openjs

## Description

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.

(As written by CVE List.)

## Affected

- path-to-regexp path-to-regexp: from 8.0.0 before 8.4.0 (not affected: 8.4.0)
- path-to-regexp (npm): from 8.0.0 before 8.4.0
- pillarjs path-to-regexp: from 8.0.0 before 8.4.0

## Every score

- openjs: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`

## 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)

## Sources

- CVE List: [CVE-2026-4923](https://www.cve.org/CVERecord?id=CVE-2026-4923), CVE Terms of Use, modified 2026-03-27
- GitHub Advisory Database: [GHSA-27v5-c462-wpq7](https://github.com/advisories/GHSA-27v5-c462-wpq7), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-4923](https://nvd.nist.gov/vuln/detail/CVE-2026-4923), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-4923 · Whole record: https://cve.day/CVE-2026-4923.json · Rebuilt by cve.day 2026-11-25T22:59:17.110Z
