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
- TanStack Router: Unauthenticated reflected XSS in TanStack Start server-function responses - @tanstack/react-start - CVE-2026-102989
- React Router has XSS Vulnerability - CVE-2025-59057
- Malware in @tanstack/* packages exfiltrates cloud credentials, GitHub tokens, and SSH keys - @tanstack/react-router-devtools - CVE-2026-45321


