CVE-2026-139998
React Router: Polynomial-time ReDoS in matchPath and matchRoutes trailing-slash handling
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 Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » react-routervia npm react-router | >= 6.0.0, < 7.18.3>= 8.0.0, < 8.3.1 | 7.18.3, 8.3.1 |
| org.webjars » react-routervia npm react-router | >= 6.0.0, < 7.18.3>= 8.0.0, < 8.3.1 | 7.18.3, 8.3.1 |
| org.webjars.npm » react-routervia npm react-router | >= 6.0.0, < 7.18.3>= 8.0.0, < 8.3.1 | 7.18.3, 8.3.1 |
Blast radius
50% of the dependent artifacts (2) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 223 |
Most used dependents
- org.mvnpm » react-router-dom19 usages
- org.webjars.npm » react-router-dom14 usages
- org.mvnpm » zudoku0 usages
- org.mvnpm.at.remix-run » react0 usages
Computed from the dependency graph of build 20261201.0702 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2026-139998 | nvd.nist.gov |
| Package | remix-run/react-router | github.com |
| Web | remix-run/react-router advisory GHSA-x8j4-g9rr-8j87 | github.com |
| Web | remix-run/react-router pull request #15417 | github.com |
| Web | remix-run/react-router pull request #15423 | github.com |
| Web | remix-run/react-router commit 308d206 | github.com |
| Web | remix-run/react-router commit 6cc6f7a | github.com |
| Web | remix-run/react-router CHANGELOG.md | github.com |
| Web | remix-run/react-router CHANGELOG.md | github.com |
| Web | remix-run/react-router release react-router@7.18.3 | github.com |
| Web | remix-run/react-router release react-router@8.3.1 | github.com |
