A AegiFlow
HIGHCVSS 8.2EPSS 0.5%

CVE-2026-21884

React Router SSR XSS in ScrollRestoration

Published
2026-01-08
Modified
2026-09-08
EPSS percentile
44%
Aliases
GHSA-8v8x-cx79-35w7
Sources
github-advisory

Summary

A XSS vulnerability exists in in React Router's ` ` API in [Framework Mode](https://reactrouter.com/start/modes#framework) 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](https://reactrouter.com/how-to/spa) in Framework Mode, or if they are using [Declarative Mode](https://reactrouter.com/start/modes#declarative) (` `) or [Data Mode](https://reactrouter.com/start/modes#data) (`createBrowserRouter`/` `).

Affected packages

EcosystemPackageAffected versionsFixed versions
npm@remix-run/react2.17.3
npmreact-router7.12.0

Remediation: Upgrade to 2.17.3 or later.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.

EPSS scores provided by the FIRST.org Exploit Prediction Scoring System.