HIGH 8.7

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)

ArtifactAffected versionsFixed 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

2affected artifacts
96affected versions
4dependent artifacts (est.)
223dependent versions

50% of the dependent artifacts (2) still pull an affected version in their latest release.

DepthDependent versions
Direct
223

Most used dependents

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