Security mailing lists by PureSourceCode

CVE-2026-4923

MEDIUM 5.9CVSS 3.1

path-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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD pillarjs path-to-regexp
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.