Vulnerability library
Security checkJune 03, 2025

path-to-regexp contains a ReDoS

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmpath-to-regexp

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The regular expression that is vulnerable to backtracking can be generated in versions before 0.1.12 of path-to-regexp, originally reported in CVE-2024-45296

Recommendation

Update the path-to-regexp package to the latest compatible version. Followings are version details:

  • Affected version(s): < 0.1.12
  • Patched version(s): 0.1.12

References

Could your website be exposed too?

SmartScanner can check your website for path-to-regexp contains a ReDoS and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated June 03, 2025