GHSA-x8j4-g9rr-8j87High
React Router: Polynomial-time ReDoS in matchPath and matchRoutes trailing-slash handling
🔗 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)
- https://github.com/remix-run/react-router/security/advisories/GHSA-x8j4-g9rr-8j87
- https://nvd.nist.gov/vuln/detail/CVE-2026-139998
- https://github.com/remix-run/react-router/pull/15417
- https://github.com/remix-run/react-router/pull/15423
- https://github.com/remix-run/react-router/commit/308d206e9afe75f8ac20f1028fe93491302bbf8c
- https://github.com/remix-run/react-router/commit/6cc6f7a657e5808a510627ac6d9c0456ddeda9f0
- https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v831
- https://github.com/remix-run/react-router/blob/v7/CHANGELOG.md#v7183
- https://github.com/remix-run/react-router/releases/tag/[email protected]
- https://github.com/remix-run/react-router/releases/tag/[email protected]
- https://github.com/advisories/GHSA-x8j4-g9rr-8j87