CVE-2026-4923
published medium CVSS 3.1 · 5.9path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| path-to-regexp | — | path-to-regexp8.0.0 to < 8.4.0 (affected · semver) · 8.4.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- openjs · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| path-to-regexp | path-to-regexp | 8.0.0 to < 8.4.0 (affected · semver)8.4.0 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
1- CWE-1333 CWE-1333: Inefficient Regular Expression Complexity
References
1Provider assertions
2openjs · cna
path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d8ea4813f39e51fd83cf419c0ddd029dceebc2b4f0bf4629bacba157205d3533
- Ingested
- 23 Sep 2026, 09:18:37 UTC
- Source record
- Official CVE record