CVE-2026-139998
published high CVSS 4.0 · 8.7React Router: Polynomial-time ReDoS in matchPath and matchRoutes trailing-slash handling
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| remix-run | — | react-router>= 6.0.0, < 7.18.3 · >= 8.0.0, < 8.3.1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| remix-run | react-router | >= 6.0.0, < 7.18.3 (affected)>= 8.0.0, < 8.3.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-400 CWE-400: Uncontrolled Resource Consumption
- CWE-1333 CWE-1333: Inefficient Regular Expression Complexity
References
9- 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/commit/308d206e9afe75f8ac20f1028fe93491302bbf8c
- https://github.com/remix-run/react-router/commit/6cc6f7a657e5808a510627ac6d9c0456ddeda9f0
- 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/releases/tag/[email protected]
- https://github.com/remix-run/react-router/releases/tag/[email protected]
- https://github.com/remix-run/react-router/security/advisories/GHSA-x8j4-g9rr-8j87
Provider assertions
1GitHub_M · cna
React Router: Polynomial-time ReDoS in matchPath and matchRoutes trailing-slash handling
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dbe1f345bdb71de9083fa87ed38c3dd8482c4673a2b3d14f2c09328530ddfb62
- Ingested
- 30 Nov 2026, 21:17:56 UTC
- Source record
- Official CVE record