path-to-regexp (npm)
Turn a path string such as `/user/:name` into a regular expression
Advisories
13
Latest version
9.0.0
Released Oct 22, 2026
License
MIT
OpenSSF Scorecard
6.2 / 10
How to fix
Upgrading to 8.4.0 or later clears every advisory below that has a fix.
Upgrade commands
npm
npm install path-to-regexp@9.0.0yarn
yarn add path-to-regexp@9.0.0pnpm
pnpm add path-to-regexp@9.0.0Known vulnerabilities
| Advisory | Severity | Affected | Fixed in |
|---|---|---|---|
| GHSA-j3q9-mxjg-w52f path-to-regexp vulnerable to Denial of Service via sequential optional groups |
High EPSS 0.80% |
>= 8.0.0, < 8.4.0 | 8.4.0 |
| GHSA-j3q9-mxjg-w52f path-to-regexp vulnerable to Denial of Service via sequential optional groups |
High EPSS 0.80% |
>= 8.0.0, < 8.4.0 | 8.4.0 |
| GHSA-27v5-c462-wpq7 path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards |
Medium EPSS 0.36% |
>= 8.0.0, < 8.4.0 | 8.4.0 |
| GHSA-27v5-c462-wpq7 path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards |
Medium EPSS 0.36% |
>= 8.0.0, < 8.4.0 | 8.4.0 |
| GHSA-rhx6-c78j-4q9w path-to-regexp contains a ReDoS |
High EPSS 0.79% |
< 0.1.12 | 0.1.12 |
| GHSA-rhx6-c78j-4q9w path-to-regexp contains a ReDoS |
High EPSS 0.79% |
< 0.1.12 | 0.1.12 |
| GHSA-37ch-88jc-xwx2 path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters |
High EPSS 0.93% |
>= 7.0.0, < 8.0.0 | 8.0.0 |
| GHSA-37ch-88jc-xwx2 path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters |
High EPSS 0.93% |
>= 2.0.0, < 3.3.0 | 3.3.0 |
| GHSA-37ch-88jc-xwx2 path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters |
High EPSS 0.93% |
>= 4.0.0, < 6.3.0 | 6.3.0 |
| GHSA-37ch-88jc-xwx2 path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters |
High EPSS 0.93% |
>= 0.2.0, < 1.9.0 | 1.9.0 |
| GHSA-37ch-88jc-xwx2 path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters |
High EPSS 0.93% |
< 0.1.13 | 0.1.13 |
| GHSA-37ch-88jc-xwx2 path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters |
High EPSS 0.93% |
< 0.1.13 | 0.1.13 |
| GHSA-37ch-88jc-xwx2 path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters |
High EPSS 0.93% |
< 0.1.10 | 0.1.10 |
Source: git+https://github.com/pillarjs/path-to-regexp.git
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor