Advisory

GHSA-f22v-gfqf-p8f3

Also known as: CVE-2026-33244

Summary

React Router has stored XSS via unescaped Location header in prerendered redirect HTML

Details

When using React Router v7 Framework Mode with Pre-rendering enabled, an improper neutralization of the HTTP Location header value can permit Cross-Site Scripting (XSS) in statically generated HTML files if the redirect location comes from an untrusted source.

> [!NOTE]
> This does not impact your React Router application if you are using Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>).

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-06-03 20:33 UTC
Modified
2026-09-08 16:45 UTC

Affected packages and fixes

react-router

npm · All systems

Affected

  • introduced 7.5.1, fixed 7.13.2 (semver)

Fixed versions

7.13.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