GHSA-2j2x-hqr9-3h42

ghsaUSosv

React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation

view advisory published 2026-06-03Licence: CC-BY-4.0

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](https://reactrouter.com/start/modes#declarative) (`<BrowserRouter>`)

01

describes (1)

Related CVEs.

IDseverity exploitable
CVE-2026-40181USmedium6.1—
React Router is a router for React. In versions 7.0.0 through 7.14.0 and 6.7.0 through 6.30.3, certain URLs passed to the redirect function can trigger an open redirect to an exter…
02

references

External citations — patches, advisories, analysis.

scry

Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.

Free scan