MediumGHSA-f22v-gfqf-p8f3CVE-2026-33244

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

Published 3 Jun 2026 · Updated 8 Sept 2026

Affected package

Affected
>=7.5.1 <7.13.2
Fixed in
7.13.2
Update to the fixed version for your release line, for example:npm install react-router@7.13.2

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

Is GHSA-f22v-gfqf-p8f3 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected react-router, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.