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 (
<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>).
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | react-router | >= 7.5.1, < 7.13.2 | 7.13.2 |
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
- https://github.com/remix-run/react-router/blob/react-router%407.13.2/CHANGELOG.md#v7132
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N- Weakness (CWE)
CWE-79- Platform
- npm
- Package
react-router- Disclosed
- 03.06.2026
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-f22v-gfqf-p8f3 - CC BY 4.0
Vulnerability history: react-router
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 20
- First → latest
- 04.2025 07.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 11
- Medium 8
- Low 1
Disclosures per year
- 2025: 2
- 2026: 18
-
React Router has stored XSS via unescaped Location header in prerendered redirect HTML this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.