React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation
Moderate severity
GitHub Reviewed
Published
Jun 2, 2026
in
remix-run/react-router
•
Updated Aug 4, 2026
Description
Published by the National Vulnerability Database
Jun 2, 2026
Published to the GitHub Advisory Database
Jun 3, 2026
Reviewed
Jun 3, 2026
Last updated
Aug 4, 2026
Certain URLs passed to the
redirectfunction can trigger an open redirect to an external domain depending on the level of validation done by the application prior to returning theredirect.Note
This does not impact your React Router application if you are using Declarative Mode (
<BrowserRouter>)References