medium5.4
CVE-2026-33244
React Router has stored XSS via unescaped Location header in prerendered redirect HTML
Impact
React Router is a router for React. In versions 7.5.1 through 7.13.1, when using Framework Mode with pre-rendering enabled, improper neutralization of the HTTP `Location` header value can permit Cross-Site Scripting (XSS) in the statically generated HTML files if the redirect location comes from an untrusted source. This does not impact applications using Declarative Mode (`<BrowserRouter>`) or Data Mode (`createBrowserRouter/<RouterProvider>`). This is patched in version 7.13.2.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | react-router | >= 7.5.1, < 7.13.2 | 7.13.2 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Shopify | React-Router | from 7.5.1 before 7.13.2 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-f22v-gfqf-p8f3
- 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