Advisory

GHSA-2j2x-hqr9-3h42

Also known as: CVE-2026-40181

Summary

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

Details

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 (<BrowserRouter>)

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-06-03 20:58 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

react-router

npm · All systems

Affected

  • introduced 7.0.0, fixed 7.14.1 (semver)

Fixed versions

7.14.1

Fix

react-router

npm · All systems

Affected

  • introduced 6.7.0, fixed 6.30.4 (semver)

Fixed versions

6.30.4

Fix

@remix-run/router

npm · All systems

Affected

  • introduced 1.3.0, fixed 1.23.3 (semver)

Fixed versions

1.23.3

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