GHSA-2w69-qvjg-hvjx

React Router vulnerable to XSS via Open Redirects

At a glance

Published
Updated
CVE
CVE-2026-22029
CVSS_V3
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N

Description

React Router (and Remix v1/v2) SPA open navigation redirects originating from loaders or actions in [Framework Mode](https://reactrouter.com/start/modes#framework), [Data Mode](https://reactrouter.com/start/modes#data), or the unstable RSC modes can result in unsafe URLs causing unintended javascript execution on the client. This is only an issue if developers are creating redirect paths from untrusted content or via an open redirect. > [!NOTE] > This does not impact applications that use [Declarative Mode](https://reactrouter.com/start/modes#declarative) (`<BrowserRouter>`).

Affected packages

PackageVersions
npm · react-routerintroduced 7.0.0, fixed 7.12.0
npm · @remix-run/routerintroduced 0, fixed 1.23.2

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database