CVE-2026-21884React Router SSR XSS in ScrollRestoration
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | ipa | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-client | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-client-common | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-client-encrypted-dns | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-client-epn | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-client-samba | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-common | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-selinux | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-selinux-luna | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-selinux-nfast | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-server | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-server-common | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-server-dns | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-server-encrypted-dns | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-server-trust-ad | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-ipaclient | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-ipalib | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-ipaserver | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-ipatests | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-client | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-client-common | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-client-encrypted-dns | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-client-epn | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-client-samba | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-common | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-selinux | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-selinux-luna | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-selinux-nfast | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-server | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-server-common | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-server-dns | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-server-encrypted-dns | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-server-trust-ad | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-ipaclient | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-ipalib | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-ipaserver | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-ipatests | Not affected | ||
| npm library | @remix-run/react | Fixed | 2.17.3 | GHSA-8v8x-cx79-35w7 |
| npm library | react-router | Fixed | 7.12.0 | GHSA-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.
- remix-run react-router: affected: @remix-run/react < 2.17.3, react-router >= 7.0.0, < 7.12.0
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.