Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. path-to-regexp
  4. ›
  5. CVE-2024-52798

CVE-2024-52798: Unpatched `path-to-regexp` ReDoS in 0.1.x

December 5, 2024 (updated January 24, 2025)

The regular expression that is vulnerable to backtracking can be generated in the 0.1.x release of path-to-regexp, originally reported in CVE-2024-45296

References

  • blakeembrey.com/posts/2024-09-web-redos
  • github.com/advisories/GHSA-rhx6-c78j-4q9w
  • github.com/pillarjs/path-to-regexp
  • github.com/pillarjs/path-to-regexp/commit/f01c26a013b1889f0c217c643964513acf17f6a4
  • github.com/pillarjs/path-to-regexp/security/advisories/GHSA-rhx6-c78j-4q9w
  • nvd.nist.gov/vuln/detail/CVE-2024-52798
  • security.netapp.com/advisory/ntap-20250124-0002

Code Behaviors & Features

Detect and mitigate CVE-2024-52798 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.1.12

Fixed versions

  • 0.1.12

Solution

Upgrade to version 0.1.12 or above.

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/path-to-regexp/CVE-2024-52798.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:43 +0000.