CVE-2026-21884
React Router SSR XSS in ScrollRestoration
CVSS v3
8.2
HIGH
EPSS Score
0.5 %
exploit probability, as of 2026-10-19
CISA KEV
No
known exploited
Exploitation
none
SSVC status
Get an alert for each new CVE published for react-router.
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- @remix-run/reactnpmall versions · fixed in 2.17.3
- react-routernpmfrom 7.0.0 · fixed in 7.12.0
Vendor advisories
react-router: @remix-run/react: React Router SSR XSS in ScrollRestoration
Red Hat Security Advisory: RHOAI 3.3.3 - Red Hat OpenShift AI
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Container Release Update
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update
Red Hat Security Advisory: RHOAI 2.25.3 - Red Hat OpenShift AI
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.
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
- Published
- 2026-01-10
- Last Modified
- 2026-01-30
Frequently asked questions
What is CVE-2026-21884?
Is CVE-2026-21884 actively exploited?
What is the CVSS score for CVE-2026-21884?
Running react-router? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.