Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-4923 EUVD-2026-16322GHSA-27v5-c462-wpq7

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

Published Mar 26, 2026 · Updated Mar 27, 2026 · 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.

Affected products

VendorProductAffectedFixed
path-to-regexp path-to-regexp 8.0.0 – < 8.4.0 8.4.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-path-to-regexp 8.4.0-1 —
Debian 13 node-path-to-regexp No fix yet —
Debian 12 node-path-to-regexp No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling code-server 4.112.0-r2 —
Wolfi rolling langfuse-3-compat 3.225.7-r6 —
Wolfi rolling langfuse-3-worker 3.179.1-r3 —
Wolfi rolling saf 1.6.0-r0 —
Wolfi rolling thingsboard-tb-web-ui +1 4.3.1.1-r0 —
Wolfi rolling tileserver-gl 5.5.0-r12 —
Wolfi rolling vitess-23 23.0.3-r12 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm path-to-regexp >= 8.0.0, < 8.4.0 8.4.0 GHSA-27v5-c462-wpq7

Advisories 2

References