CVE-2026-21884 Details
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.
A cross-site scripting (XSS) vulnerability has been identified in React Router's <ScrollRestoration> API, specifically in @remix-run/react versions prior to 2.17.3 and in react-router versions 7.0.0 through 7.11.0. The issue arises in Framework Mode during server-side rendering (SSR) when the getKey or storageKey props are used, allowing arbitrary JavaScript execution if untrusted content is used to generate the keys. This vulnerability does not affect applications that have disabled SSR in Framework Mode or those using Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>).
Users can upgrade to @remix-run/react version 2.17.3 or react-router version 7.12.0 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:19712 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:3782 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:3958 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:3960 | redhat-SADP | |
| https://access.redhat.com/security/cve/CVE-2026-21884 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2428421 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-21884.json | redhat-SADP | |
| https://github.com/remix-run/react-router/security/advisories/GHSA-8v8x-cx79-35w7 | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | redhat-SADP |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| shopify react-router | >= 7.0.0, <= 7.11.0 |
CPE
Remediation
| |
| shopify remix-run/react | < 2.17.3 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 30, 2026 | Initial Analysis | [email protected] |
| Jan 10, 2026 | New CVE Received | [email protected] |