React Router: Polynomial-time ReDoS in matchPath and matchRoutes trailing-slash handling
Affected
| Package | Affected versions | Fixed in |
|---|---|---|
| npm:react-router | >= 6.0.0, < 7.18.3 | 7.18.3 |
| npm:react-router | >= 8.0.0, < 8.3.1 | 8.3.1 |
A vulnerability in React Router’s route matching may cause excessive CPU consumption when processing specially crafted paths, potentially resulting in denial of service. Affected Modes: Declarative, Data, Framework, RSC Data (unstable), and RSC Framework (unstable). Impact may occur in the browser or on the server, depending on where route matching runs.
Read on GitHub Advisory Database
Get these alerts on XExploits, big breaches and outages, with what to do.
Follow @vulnpulse_appOn 12/02/2026, 03:28 AM, GitHub Advisory Database published "React Router: Polynomial-time ReDoS in matchPath and matchRoutes trailing-slash handling" (type: Advisory). Severity is "High" (high). Related technologies: JavaScript / Node.js, React. CVE: CVE-2026-139998.