npm package

path-to-regexp vulnerabilities by version

The latest release, 8.4.2 (Apr 1, 2026), has no known vulnerabilities. 24% of last week’s 236.2M downloads went to versions with known vulnerabilities. OSV.dev lists 4 advisories for path-to-regexp; the newest was published on Mar 27, 2026.

npm (opens in a new tab) describes it as “Express style path to RegExp utility”

Latest release
8.4.2
Apr 1, 2026, no known vulnerabilities
Downloads last week
236.2M
All versions, from npm
Advisories on OSV.dev
4
Newest Mar 27, 2026
Licence
MIT

Most-downloaded versions last week

From npm’s per-version download counts for the last 7 days, each checked against OSV.dev. Open a version for its advisories and what to upgrade to.

VersionKnown vulnerabilitiesDownloads
8.4.2latestApr 1, 2026No known vulnerabilities67.3M
6.3.0Sep 12, 2024No known vulnerabilities48.8M
0.1.13Mar 26, 2026No known vulnerabilities37M
0.1.12Dec 5, 20241 known vulnerability, worst rated critical11.8M
8.3.0Sep 2, 20252 known vulnerabilities, worst rated critical11.3M
8.2.0Sep 26, 20242 known vulnerabilities, worst rated critical10.2M
3.3.0Sep 10, 2024No known vulnerabilities8.7M
0.1.7Jul 28, 20152 known vulnerabilities, worst rated critical8.6M

Who is still on a vulnerable path-to-regexp

24% of last week’s 236.2M path-to-regexp downloads went to versions with known vulnerabilities.

From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.

Release lines

The newest release of each major line, from the registry. path-to-regexp doesn’t publish support dates we can check.

LineNewest releaseReleased
88.4.2Apr 1, 2026
77.2.0Sep 10, 2024
66.3.0Sep 12, 2024
55.0.0Nov 12, 2019
44.0.5Nov 12, 2019
33.3.0Sep 10, 2024

Newest advisories

The 4 most recently published, with the versions each one affects.

  1. WarningCVE-2026-4923 on OSV.dev (opens in a new tab)GHSA-27v5-c462-wpq7

    path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards

    Affects >= 8.0.0, < 8.4.0. Published Mar 27, 2026.

  2. CriticalCVE-2026-4926 on OSV.dev (opens in a new tab)GHSA-j3q9-mxjg-w52f

    path-to-regexp vulnerable to Denial of Service via sequential optional groups

    Affects >= 8.0.0, < 8.4.0. Published Mar 27, 2026.

  3. CriticalCVE-2024-45296 on OSV.dev (opens in a new tab)CVE-2026-4867

    path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters

    Affects < 0.1.13. Published Mar 27, 2026.

  4. CriticalCVE-2024-52798 on OSV.dev (opens in a new tab)GHSA-rhx6-c78j-4q9w

    path-to-regexp contains a ReDoS

    Affects < 0.1.12. Published Dec 5, 2024.

Which path-to-regexp do you have?

Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task for your coding agent. Free, no sign-up.

Check your whole repo

How this page is checked

StackPrism reads every OSV.dev advisory for path-to-regexp, merges duplicates filed under several ids, and asks OSV.dev which ones affect each version listed. Releases and their dates come from deps.dev, downloads from npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.

Last checked against OSV.dev, CISA KEV, npm and deps.dev.