Advisory

GHSA-2w69-qvjg-hvjx

Also known as: CVE-2026-22029

Summary

React Router vulnerable to XSS via Open Redirects

Details

React Router (and Remix v1/v2) SPA open navigation redirects originating from loaders or actions in Framework Mode, Data Mode, 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 (<BrowserRouter>).

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-01-08 20:54 UTC
Modified
2026-02-03 03:15 UTC

Affected packages and fixes

react-router

npm · All systems

Affected

  • introduced 7.0.0, fixed 7.12.0 (semver)

Fixed versions

7.12.0

Fix

@remix-run/router

npm · All systems

Affected

  • introduced 0, fixed 1.23.2 (semver)

Fixed versions

1.23.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences