High severity · published Jan 10, 2026
CVE-2026-21884
React Router SSR XSS in ScrollRestoration
8.2
CVSS
0.5%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 45% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RE
react-router · remix-run
@remix-run/react < 2.17.3; react-router >= 7.0.0, < 7.12.0 · source: vendor, NVD
RE
Remix-run/react · Shopify
before 2.17.3 · source: NVD
RH
Red Hat Ansible Automation Platform 2.6 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat Ansible Automation Platform 2.6 for RHEL 9 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat OpenShift AI 2.25 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat OpenShift AI 3.3 · Red Hat
All versions, or not specified · source: CISA
Affected product
RE
react-router
remix-run
More from react-router
9.1
CVE-2025-61686
React Router has Path Traversal in File Session Storage
8.1
CVE-2026-42211
React Router's vendored turbo-stream v2 allows arbitrary constructor invocation via TYPE_ERROR deserialization leading to Unauth RCE
7.6
CVE-2025-59057
React Router has XSS Vulnerability
7.5
CVE-2026-55685
React Router: Unauthenticated Denial of Service via Inefficient Route Matching
7.5
CVE-2026-42342
React Router vulnerable to DoS via unbounded path expansion in __manifest endpoint