MediumGHSA-9jcx-v3wj-wh4mCVE-2025-68470

React Router has unexpected external redirect via untrusted paths

Published 8 Jan 2026 · Updated 3 Feb 2026

Affected packages

Affected
>=6.0.0 <6.30.2
Fixed in
6.30.2
Update to the fixed version for your release line, for example:npm install react-router@6.30.2
Affected
>=7.0.0 <7.9.6
Fixed in
7.9.6
Update to the fixed version for your release line, for example:npm install react-router@7.9.6

Details

An attacker-supplied path can be crafted so that when a React Router application navigates to it via navigate(), <Link>, or redirect(), the app performs a navigation/redirect to an external URL. This is only an issue if developers pass untrusted content into navigation paths in their application code.

Is GHSA-9jcx-v3wj-wh4m in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected react-router, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.