npmWorst: High5 advisories

path-to-regexp: known vulnerabilities

path-to-regexp has 5 reviewed security advisories in the GitHub Advisory Database — 4 high, 1 moderate. The most recent was published 2026-03-26. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the path-to-regexp versions running across your servers, containers and images, and ranks what to patch first.

How to fix path-to-regexp

Upgrade path-to-regexp to a release at or above the fixed version shown for each advisory below. For npm:

npm install path-to-regexp@8.4.0 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (5)

path-to-regexp vulnerable to Regular Expression Denial of Service via multiple wildcards Moderate 5.9 CWE-1333 — Affected: from 8.0.0 up to 8.4.0. Fixed in 8.4.0. Published 2026-03-26. GHSA-27v5-c462-wpq7 · CVE-2026-4923
path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters High 7.5 CWE-1333 — Affected: before 0.1.13. Fixed in 0.1.13. Published 2026-03-26. GHSA-37ch-88jc-xwx2 · CVE-2024-45296
path-to-regexp vulnerable to Denial of Service via sequential optional groups High 7.5 CWE-1333 CWE-400 — Affected: from 8.0.0 up to 8.4.0. Fixed in 8.4.0. Published 2026-03-26. GHSA-j3q9-mxjg-w52f · CVE-2026-4926
path-to-regexp outputs backtracking regular expressions High 7.5 CWE-1333 — Affected: from 4.0.0 up to 6.3.0. Fixed in 6.3.0. Published 2024-09-09. GHSA-9wv6-86v2-598j · CVE-2024-45296

Find path-to-regexp across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.