GHSA-f22v-gfqf-p8f3
React Router has stored XSS via unescaped Location header in prerendered redirect HTML
Quick fix
GHSA-f22v-gfqf-p8f3 — react-router: upgrade to the fixed version with the command below.
npm install react-router@7.13.2Details
When using React Router v7 [Framework Mode](https://reactrouter.com/start/modes#framework) with [Pre-rendering](https://reactrouter.com/how-to/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](https://reactrouter.com/start/modes#declarative) (`<BrowserRouter>`) or [Data Mode](https://reactrouter.com/start/modes#data) (`createBrowserRouter`/`<RouterProvider>`).
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/remix-run/react-router/security/advisories/GHSA-f22v-gfqf-p8f3[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2026-33244[ADVISORY]
- https://github.com/remix-run/react-router/pull/14880[WEB]
- https://github.com/remix-run/react-router/commit/ea28e66926460656815cee9b7f2dfaa872513a8c[WEB]
- https://github.com/remix-run/react-router[PACKAGE]
- https://github.com/remix-run/react-router/blob/react-router%407.13.2/CHANGELOG.md#v7132[WEB]