react-router
Affected
- introduced
7.0.0, fixed7.12.0(semver)
Fixed versions
7.12.0
Fix
- Fixed version
7.12.0npm install [email protected]
Advisory
Also known as: CVE-2026-21884
React Router SSR XSS in ScrollRestoration
A XSS vulnerability exists in in React Router's <ScrollRestoration> API in Framework Mode when using the getKey/storageKey props during Server-Side Rendering which could allow arbitrary JavaScript execution during SSR if untrusted content is used to generate the keys.
> [!NOTE]
> This does not impact applications if developers have disabled server-side rendering in Framework Mode, or if they are using Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>).
High Basis: The source's own band: HIGH
7.0.0, fixed 7.12.0 (semver)7.12.0
7.12.0npm install [email protected]0, fixed 2.17.3 (semver)2.17.3
2.17.3npm install @remix-run/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0