GitHub Advisory Database
GHSA-9jcx-v3wj-wh4m
React Router has unexpected external redirect via untrusted paths
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | react-router | From 6.0.0 before 6.30.2 (fixed in 6.30.2) |
| npm | react-router | From 7.0.0 before 7.9.6 (fixed in 7.9.6) |