Vulnerability library
Security checkJanuary 11, 2026

React Router SSR XSS in ScrollRestoration

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpm@remix-run/react

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 scan

Related Issues

See something that needs correcting? Let us knowUpdated January 11, 2026