MODERATE 6.6

CVE-2026-40181

React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation

Description

Certain URLs passed to the redirect function can trigger an open redirect to an external domain depending on the level of validation done by the application prior to returning the redirect.

[!NOTE] This does not impact your React Router application if you are using Declarative Mode (<BrowserRouter>)

Affected Maven artifacts (5)

ArtifactAffected versionsFixed in
org.mvnpm » react-routervia npm react-router
>= 6.7.0, < 6.30.4>= 7.0.0, < 7.14.1
6.30.4, 7.14.1
org.mvnpm.at.remix-run » routervia npm @remix-run/router
>= 1.3.0, < 1.23.3
1.23.3
org.webjars » react-routervia npm react-router
>= 6.7.0, < 6.30.4>= 7.0.0, < 7.14.1
6.30.4, 7.14.1
org.webjars.npm » react-routervia npm react-router
>= 6.7.0, < 6.30.4>= 7.0.0, < 7.14.1
6.30.4, 7.14.1
org.webjars.npm » remix-run__routervia npm @remix-run/router
>= 1.3.0, < 1.23.3
1.23.3

Blast radius

4affected artifacts
108affected versions
8dependent artifacts (est.)
280dependent versions

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

DepthDependent versions
Direct
278
2 hops
2

Most used dependents

Computed from the dependency graph of build 20261129.2353 (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 (2 packages) . See all on OSV