CVE-2026-33244: React Router has stored XSS via unescaped Location header in prerendered redirect HTML
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
- https://github.com/remix-run/react-router/security/advisories/GHSA-f22v-gfqf-p8f3
- https://nvd.nist.gov/vuln/detail/CVE-2026-33244
- https://github.com/remix-run/react-router/pull/14880
- https://github.com/remix-run/react-router/commit/ea28e66926460656815cee9b7f2dfaa872513a8c
- https://github.com/remix-run/react-router/blob/react-router%407.13.2/CHANGELOG.md#v7132
- https://github.com/advisories/GHSA-f22v-gfqf-p8f3
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 entriesCVE-2026-55685
React Router: Unauthenticated Denial of Service via Inefficient Route Matching
high8.7Jul 24, 2026GHSA-qwww-vcr4-c8h2
React Router: RSC Mode CSRF Bypass Allows Action Execution Before 400 Response
high7.1Jul 24, 2026CVE-2026-53666
React Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR Hydration
medium6.1Jul 23, 2026CVE-2026-53667
React Router: RSCErrorHandler Missing Protocol Validation (XSS)
medium6.9Jul 23, 2026CVE-2026-53668
React Router: Open redirect leading to XSS
medium6.9Jul 23, 2026CVE-2026-53669
React Router: Open redirect via backslash in <Link> and useNavigate (CVE-2025-68470 bypass)
medium5.1Jul 23, 2026
