React Router: Polynomial-time ReDoS in matchPath and matchRoutes trailing-slash handling
- State
- Published
- Severity
- 8.7 High
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
React Router is a router for React. From 6.0.0 until 7.18.3 and 8.3.1, react Router's regular-expression-based route matching can perform excessive work when processing specially crafted long paths. Declarative, Data, Framework, unstable RSC Data, and unstable RSC Framework applications can consume excessive CPU in the browser or server, depending on where matching occurs, causing denial of service. This issue is fixed in versions 7.18.3 and 8.3.1.
| Product | Versions |
|---|---|
| react-router remix-run | >= 6.0.0, < 7.18.3 Affected>= 8.0.0, < 8.3.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.7 High | GitHub_M |
Weaknesses
References
- https://github.com/remix-run/react-router/security/advisories/GHSA-x8j4-g9rr-8j87
- 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/react-router@7.18.3
- https://github.com/remix-run/react-router/releases/tag/react-router@8.3.1
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.