CVEfocus › CVE database › CVE-2026-21884

CVE-2026-21884React Router SSR XSS in ScrollRestoration

CVSS 8.2 HighEPSS 0.7% (higher than 46% of CVEs)Published 2026-01-10Updated 2026-07-15Assigner: GitHub_M

React Router is a router for React. In @remix-run/react version prior to 2.17.3. and react-router 7.0.0 through 7.11.0, 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. There is no impact if server-side rendering in Framework Mode is disabled, or if Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>) is being used. This issue has been patched in @remix-run/react version 2.17.3 and react-router version 7.12.0.

CWE-79

What to do

Fixed builds are available from npm: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
38Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Red Hat Enterprise Linux 10ipaNot affected
Red Hat Enterprise Linux 10ipa-clientNot affected
Red Hat Enterprise Linux 10ipa-client-commonNot affected
Red Hat Enterprise Linux 10ipa-client-encrypted-dnsNot affected
Red Hat Enterprise Linux 10ipa-client-epnNot affected
Red Hat Enterprise Linux 10ipa-client-sambaNot affected
Red Hat Enterprise Linux 10ipa-commonNot affected
Red Hat Enterprise Linux 10ipa-selinuxNot affected
Red Hat Enterprise Linux 10ipa-selinux-lunaNot affected
Red Hat Enterprise Linux 10ipa-selinux-nfastNot affected
Red Hat Enterprise Linux 10ipa-serverNot affected
Red Hat Enterprise Linux 10ipa-server-commonNot affected
Red Hat Enterprise Linux 10ipa-server-dnsNot affected
Red Hat Enterprise Linux 10ipa-server-encrypted-dnsNot affected
Red Hat Enterprise Linux 10ipa-server-trust-adNot affected
Red Hat Enterprise Linux 10python3-ipaclientNot affected
Red Hat Enterprise Linux 10python3-ipalibNot affected
Red Hat Enterprise Linux 10python3-ipaserverNot affected
Red Hat Enterprise Linux 10python3-ipatestsNot affected
Red Hat Enterprise Linux 9ipaNot affected
Red Hat Enterprise Linux 9ipa-clientNot affected
Red Hat Enterprise Linux 9ipa-client-commonNot affected
Red Hat Enterprise Linux 9ipa-client-encrypted-dnsNot affected
Red Hat Enterprise Linux 9ipa-client-epnNot affected
Red Hat Enterprise Linux 9ipa-client-sambaNot affected
Red Hat Enterprise Linux 9ipa-commonNot affected
Red Hat Enterprise Linux 9ipa-selinuxNot affected
Red Hat Enterprise Linux 9ipa-selinux-lunaNot affected
Red Hat Enterprise Linux 9ipa-selinux-nfastNot affected
Red Hat Enterprise Linux 9ipa-serverNot affected
Red Hat Enterprise Linux 9ipa-server-commonNot affected
Red Hat Enterprise Linux 9ipa-server-dnsNot affected
Red Hat Enterprise Linux 9ipa-server-encrypted-dnsNot affected
Red Hat Enterprise Linux 9ipa-server-trust-adNot affected
Red Hat Enterprise Linux 9python3-ipaclientNot affected
Red Hat Enterprise Linux 9python3-ipalibNot affected
Red Hat Enterprise Linux 9python3-ipaserverNot affected
Red Hat Enterprise Linux 9python3-ipatestsNot affected
npm library@remix-run/reactFixed2.17.3GHSA-8v8x-cx79-35w7
npm libraryreact-routerFixed7.12.0GHSA-8v8x-cx79-35w7

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.