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

CVE-2024-52798: path-to-regexp contains a ReDoS

December 5, 2024 (updated June 3, 2025)

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

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.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

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 Mon, 01 Sep 2025 12:18:25 +0000.