Executive summary
CVE-2026-139998 is a high-severity denial-of-service vulnerability in React Router, the routing library used by React applications. The problem affects regular-expression-based route matching in matchPath and matchRoutes, particularly when trailing slashes are processed. An attacker-controlled path of substantial length can force the matcher to perform excessive work, consuming CPU and degrading application availability.
The affected release lines are React Router versions from 6.0.0 up to but not including 7.18.3, and versions from 8.0.0 up to but not including 8.3.1. Upstream fixes are available in 7.18.3 and 8.3.1.
The supplied sources classify the issue as remotely exploitable and HIGH severity with a CVSS 4.0 score of 8.7. They also associate it with CWE-400, CWE-1333, and CAPEC-492. The provided context does not document active exploitation in the wild, so the evidence supports a serious exposure risk rather than a confirmed compromise campaign.
Affected systems
The vulnerability can affect applications using React Router in any of the following modes:
- Declarative
- Data
- Framework
- unstable RSC Data
- unstable RSC Framework
The vulnerable implementation is shared by matchPath and matchRoutes. Consequently, exposure depends on whether route matching occurs in the browser, on the server, or both. Server-rendered and framework-based applications are particularly relevant when an external party can influence request paths, while client-side applications may be affected when attacker-influenced path data reaches the router.
Affected versions are:
>=6.0.0, <7.18.3
>=8.0.0, <8.3.1
The source material identifies react-router under the Shopify and Remix-run vendor entries. Fixed releases are React Router 7.18.3 and 8.3.1.
Technical analysis
React Router uses regular expressions to evaluate candidate routes. In affected versions, specially crafted long paths combined with the trailing-slash matching behavior can trigger polynomial-time computation. The amount of work therefore grows faster than the input length in a linear manner, allowing a request to consume disproportionate CPU resources.
This is not described as classic catastrophic exponential backtracking, but polynomial complexity can still be operationally significant. A long URL may require little bandwidth to transmit while generating substantial computation in the target application. If route matching runs on every request, repeated requests can compound the cost and degrade or interrupt service.
The attack surface is primarily determined by application architecture:
- Server-side routing can be exposed through attacker-controlled HTTP paths or URLs.
- Browser-side routing can be exposed when untrusted or externally influenced path values are passed into route matching.
- Hybrid applications may be affected in both environments.
The vulnerability does not, based on the supplied context, indicate code execution, data disclosure, or authentication bypass. Its principal impact is availability degradation through excessive CPU consumption.
Exploitation and operational risk
The issue is rated 8.7 under CVSS 4.0 and is identified as remotely exploitable. Creating a denial-of-service input does not appear to require authentication or special application privileges when a vulnerable server route accepts external paths.
Nevertheless, the context does not provide evidence of widespread exploitation, a public working exploit, or a documented campaign targeting vulnerable deployments. The appropriate risk interpretation is therefore high exposure with uncertain observed exploitation. Systems that route untrusted request paths through React Router should treat the upgrade as a priority because the trigger is conceptually straightforward and can be automated.
Mitigation
Upgrade React Router to a fixed release:
- Use 7.18.3 or later for the 7.x line.
- Use 8.3.1 or later for the 8.x line.
The upstream changelogs, commits, pull requests, and GitHub Security Advisory GHSA-x8j4-g9rr-8j87 provide additional details about the corrections.
Where an immediate upgrade is not operationally possible, temporary defensive measures can reduce the likelihood of sustained resource exhaustion:
- Enforce a maximum accepted URL or path length at the reverse proxy, CDN, WAF, or application-server layer.
- Apply rate limiting to endpoints that perform route matching.
- Monitor server CPU together with unusual request-path lengths and request rates.
- Review browser-side telemetry for abnormally long route-matching operations where untrusted path data can reach the router.
These compensating controls can limit exposure, but they do not correct the underlying regex-complexity defect. The durable remediation is upgrading the affected dependency.
Expert insight
The important distinction in CVE-2026-139998 is that a modest request size can produce disproportionate computation. Because the matcher is a fundamental routing primitive, one vulnerable implementation may affect many routes without requiring a route-specific coding mistake. This makes dependency-level inventory important: identifying the installed React Router version is more reliable than searching individual application route definitions.
The fixed-release boundaries are also worth noting. Upgrading to 7.18.3 resolves the 7.x line, while 8.x requires 8.3.1 or later. Organizations supporting both branches should verify both independently, including lockfiles, deployed artifacts, and transitive dependency resolution.
No evidence of active exploitation appears in the provided material. That does not reduce the technical exposure, but it does mean defensive decisions should be driven by patch status and exposure rather than claims of an active attack campaign.
References
- nvd.nist.gov/vuln/detail/CVE-2026-139998
- cvefeed.io/vuln/detail/CVE-2026-139998
- github.com/remix-run/react-router/blob/main/CHANGELOG.md
- github.com/remix-run/react-router/blob/v7/CHANGELOG.md
- github.com/remix-run/react-router/commit/308d2…e93491302bbf8c
- github.com/remix-run/react-router/commit/6cc6f…9c0456ddeda9f0
- github.com/remix-run/react-router/pull/15417
- github.com/remix-run/react-router/pull/15423
- github.com/remix-run/react-router/releases/tag…-router@7.18.3
- github.com/remix-run/react-router/releases/tag…t-router@8.3.1