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)
| Artifact | Affected versions | Fixed 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
0% of the dependent artifacts (0) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 278 |
| 2 hops | 2 |
Most used dependents
- org.mvnpm » react-router-dom19 usages
- org.webjars.npm » react-router-dom14 usages
- org.mvnpm » react-router9 usages
- org.webjars.npm » react-router9 usages
- org.mvnpm.at.remix-run » server-runtime2 usages
- org.mvnpm » zudoku0 usages
- org.mvnpm.at.remix-run » react0 usages
- org.mvnpm.at.remix-run » node0 usages
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
References
| Advisory | NVD CVE-2026-40181 | nvd.nist.gov |
| Package | remix-run/react-router | github.com |
| Web | remix-run/react-router advisory GHSA-2j2x-hqr9-3h42 | github.com |
| Web | remix-run/react-router commit d77f6b1 | github.com |
