CVE-2026-21884: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in remix-run react-router
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.
AI Analysis
Technical Summary
React Router versions 7.0.0 through 7.11.0 and @remix-run/react versions prior to 2.17.3 contain a cross-site scripting vulnerability in the <ScrollRestoration> API when operating in Framework Mode with server-side rendering. This vulnerability arises from improper neutralization of input used in the getKey/storageKey properties, which can lead to arbitrary JavaScript execution during SSR if untrusted content is used to generate these keys. The vulnerability does not affect applications that disable SSR in Framework Mode or use Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>). The issue has been addressed and fixed in react-router version 7.12.0 and @remix-run/react version 2.17.3.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code during server-side rendering in Framework Mode, potentially leading to client-side script injection and compromise of user interactions or data. The vulnerability has a CVSS 3.1 base score of 8.2, indicating high severity with network attack vector, low attack complexity, no privileges required, user interaction required, scope change, high confidentiality impact, low integrity impact, and no availability impact. There are no known exploits in the wild at this time.
Mitigation Recommendations
This vulnerability has been officially fixed in react-router version 7.12.0 and @remix-run/react version 2.17.3. Users should upgrade to these versions or later to remediate the issue. If server-side rendering in Framework Mode is disabled, or if Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>) is used, there is no impact. No additional mitigations are required beyond applying the official patches.
CVE-2026-21884: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in remix-run react-router
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 v3.1
Score 8.2high
Affected software
remix-run
react-router
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
React Router versions 7.0.0 through 7.11.0 and @remix-run/react versions prior to 2.17.3 contain a cross-site scripting vulnerability in the <ScrollRestoration> API when operating in Framework Mode with server-side rendering. This vulnerability arises from improper neutralization of input used in the getKey/storageKey properties, which can lead to arbitrary JavaScript execution during SSR if untrusted content is used to generate these keys. The vulnerability does not affect applications that disable SSR in Framework Mode or use Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>). The issue has been addressed and fixed in react-router version 7.12.0 and @remix-run/react version 2.17.3.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code during server-side rendering in Framework Mode, potentially leading to client-side script injection and compromise of user interactions or data. The vulnerability has a CVSS 3.1 base score of 8.2, indicating high severity with network attack vector, low attack complexity, no privileges required, user interaction required, scope change, high confidentiality impact, low integrity impact, and no availability impact. There are no known exploits in the wild at this time.
Mitigation Recommendations
This vulnerability has been officially fixed in react-router version 7.12.0 and @remix-run/react version 2.17.3. Users should upgrade to these versions or later to remediate the issue. If server-side rendering in Framework Mode is disabled, or if Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>) is used, there is no impact. No additional mitigations are required beyond applying the official patches.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-01-05T17:24:36.928Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-21884","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3958","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3960","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3782","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19712","vendor":"Red Hat"}]
Threat ID: 6961c40f19784dcf52ace86a
Added to database: 01/10/2026, 03:14:23 UTC
Last enriched: 07/15/2026, 08:32:47 UTC
Last updated: 09/10/2026, 22:27:09 UTC
Views: 303
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.