Install
path-to-regexp
Express style path to RegExp utility
9.0.0Latest, 22 Oct 2026
1.4BDownloads, last month
0Advisories on the latest
5Advisories, all versions
MITLicence
8.6KStars
6.2/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| Moderate | path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards CVE-2026-4923 | Fixed in 8.4.0 | 27 Mar 2026 |
| High | path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters CVE-2024-45296 | Fixed in 0.1.13 | 27 Mar 2026 |
| High | path-to-regexp vulnerable to Denial of Service via sequential optional groups CVE-2026-4926 | Fixed in 8.4.0 | 27 Mar 2026 |
| High | path-to-regexp contains a ReDoS CVE-2024-52798 | Fixed in 0.1.12 | 5 Dec 2024 |
| High | path-to-regexp outputs backtracking regular expressions CVE-2024-45296 | Fixed in 8.0.0, 3.3.0, 6.3.0 | 9 Sep 2024 |
In the news
- The docs allowed a path, the regexp didn't: fixing GitLab's NuGet group API dev.to, 1 Dec 2026
- One regex change made path-to-regexp up to 41% faster dev.to, 29 Nov 2026
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.