Description
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.
Recommendation
Update the @remix-run/react package to the latest compatible version. Followings are version details:
- Affected version(s): < 2.17.3
- Patched version(s): 2.17.3
References
Could your website be exposed too?
SmartScanner can check your website for React Router SSR XSS in ScrollRestoration and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Malware in @tanstack/* packages exfiltrates cloud credentials, GitHub tokens, and SSH keys - @tanstack/react-router-ssr-query - CVE-2026-45321
- React Router has XSS Vulnerability - CVE-2025-59057
- Svelte vulnerable to XSS during SSR with contenteditable `bind:innerText` and `bind:textContent` - CVE-2026-27901
- React Router vulnerable to DoS via unbounded path expansion in __manifest endpoint - CVE-2026-42342


