GHSA-x8j4-g9rr-8j87High

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

Published
December 1, 2026
Last Modified
December 1, 2026

🔗 CVE IDs covered (1)

📋 Description

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.

🎯 Affected products2

  • npm/react-router:>= 6.0.0, < 7.18.3
  • npm/react-router:>= 8.0.0, < 8.3.1

🔗 References (11)