← Vulnerabilities

HighAdvisoryJavaScript / Node.jsReact

React Router: Polynomial-time ReDoS in matchPath and matchRoutes trailing-slash handling

Affected

PackageAffected versionsFixed in
npm:react-router>= 6.0.0, < 7.18.37.18.3
npm:react-router>= 8.0.0, < 8.3.18.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

On 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.