Vulnerability · Published Mar 26, 2026 · Assigned by openjs

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

Medium 5.9

In plain English

A medium-severity regular-expression denial of service in path-to-regexp from path-to-regexp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 30% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.4%top 70.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-path-to-regexpno fix listedDEBIAN-CVE-2026-4923
Debian:13node-path-to-regexpno fix listedDEBIAN-CVE-2026-4923
Debian:14node-path-to-regexp8.4.0-1DEBIAN-CVE-2026-4923
Ubuntu:22.04:LTSnode-path-to-regexpno fix listedUBUNTU-CVE-2026-4923
Ubuntu:24.04:LTSnode-path-to-regexpno fix listedUBUNTU-CVE-2026-4923
Ubuntu:25.10node-path-to-regexpno fix listedUBUNTU-CVE-2026-4923
Ubuntu:26.04:LTSnode-path-to-regexpno fix listedUBUNTU-CVE-2026-4923
npmpath-to-regexp8.4.0GHSA-27v5-c462-wpq7

Affected products (as reported)

VendorProductVersions
path-to-regexp path-to-regexp 8.0.0 – before 8.4.0

Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

References