Vulnerabilities/

React Router SSR XSS in ScrollRestoration

Severity:
High

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:

References

Related Issues

Tags:
npm
@remix-run/react
Anything's wrong? Let us know Last updated on January 11, 2026