ADVISORIES

GitHub Advisory Database

GHSA-9jcx-v3wj-wh4m

React Router has unexpected external redirect via untrusted paths

Moderate CVE-2025-68470

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

EcosystemPackageAffected versions
npmreact-router
From 6.0.0 before 6.30.2 (fixed in 6.30.2)
npmreact-router
From 7.0.0 before 7.9.6 (fixed in 7.9.6)

References