NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2026-33244: React Router has stored XSS via unescaped Location header in prerendered redirect HTML

mediumCVSS 3.1 5.4GHSA-f22v-gfqf-p8f3

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 ( ) or Data Mode (createBrowserRouter/ ).

Published Jun 3, 2026 · Updated Sep 8, 2026

Affected packages

react-router

Ecosystem
npm
Affected
>= 7.5.1, < 7.13.2
Fixed in
7.13.2
Check
npm ls react-router

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to yuito-it, HF-CYGG.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries