React Router SSR XSS in ScrollRestoration
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| remix-run | react-router | @remix-run/react < 2.17.3; react-router >= 7.0.0, < 7.12.0 | — | No fix listed | CNA |
| — | react-router (npm) | 7.0.0 to before 7.12.0 | 7.12.0 | Patch available | GHSA-8v8x-cx79-35w7 |
| — | @remix-run/react (npm) | before 2.17.3 | 2.17.3 | Patch available | GHSA-8v8x-cx79-35w7 |
- react-router Vendorremix-run Affected @remix-run/react < 2.17.3; react-router >= 7.0.0, < 7.12.0 Fixed in — No fix listed CNA
- react-router (npm) Vendor— Affected 7.0.0 to before 7.12.0 Fixed in 7.12.0 Patch available GHSA-8v8x-cx79-35w7
- @remix-run/react (npm) Vendor— Affected before 2.17.3 Fixed in 2.17.3 Patch available GHSA-8v8x-cx79-35w7
Remediation
- Fix · GHSA-8v8x-cx79-35w7 react-router (npm) Fixed in 7.12.0 Advisory →
- Fix · GHSA-8v8x-cx79-35w7 @remix-run/react (npm) Fixed in 2.17.3 Advisory →
Red Hat 4 advisories
- RHSA-2026:19712 Released 2026-05-20 · Red Hat rating CriticalRHOAI 3.3.3 - Red Hat OpenShift AI
- Red Hat OpenShift AI 3.3 registry.redhat.io/rhoai/odh-built-in-detector-rhel9, registry.redhat.io/rhoai/odh-dashboard-rhel9, registry.redhat.io/rhoai/odh-data-science-pipelines-argo-argoexec-rhel9 +33
- RHSA-2026:3960 Released 2026-03-06 · Red Hat rating ImportantRed Hat Ansible Automation Platform 2.6 Container Release Update
- Red Hat Ansible Automation Platform 2.6 registry.redhat.io/ansible-automation-platform-26/de-minimal-rhel9, registry.redhat.io/ansible-automation-platform-26/de-supported-rhel9, registry.redhat.io/ansible-automation-platform-26/ee-minimal-rhel9 +9
- RHSA-2026:3958 Released 2026-03-06 · Red Hat rating ImportantRed Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update
- Red Hat Ansible Automation Platform 2.6 for RHEL 10 receptor-1.6.3-4.el10ap, receptorctl-1.6.3-4.el10ap
- Red Hat Ansible Automation Platform 2.6 for RHEL 9 automation-controller-4.7.9-1.el9ap, automation-controller-cli-4.7.9-1.el9ap, automation-controller-server-4.7.9-1.el9ap +8
Show 1 more Red Hat advisories
- RHSA-2026:3782 Released 2026-03-04 · Red Hat rating CriticalRHOAI 2.25.3 - Red Hat OpenShift AI
- Red Hat OpenShift AI 2.25 registry.redhat.io/rhoai/odh-caikit-tgis-serving-rhel9, registry.redhat.io/rhoai/odh-codeflare-operator-rhel9, registry.redhat.io/rhoai/odh-dashboard-rhel9 +27
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Automation Platform 2.6 | Fixed | RHSA-2026:3960 |
| Red Hat Ansible Automation Platform 2.6 for RHEL 9 | Fixed | RHSA-2026:3958 |
| Red Hat OpenShift AI 2.25 | Fixed | RHSA-2026:3782 |
| Red Hat OpenShift AI 3.3 | Fixed | RHSA-2026:19712 |
Not affected: 8 products
- Red Hat Ansible Automation Platform 2.6
- Red Hat Ansible Automation Platform 2.6 for RHEL 10
- Red Hat Ansible Automation Platform 2.6 for RHEL 9
- Red Hat Build of Kueue
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 9
- Red Hat OpenShift AI 2.25
- Red Hat OpenShift AI 3.3
Timeline
- 2026-10-02 Threatist record created from CVE-2026-21884
- 2026-10-03 Alias added: GHSA-8v8x-cx79-35w7
References
Advisory 2
Other 11
- https://github.com/remix-run/react-router/pull/14705
- https://github.com/remix-run/react-router/commit/c89c32c562a7723c45ee71dab1c892acaf7a608d
- https://access.redhat.com/errata/RHSA-2026:19712
- https://access.redhat.com/errata/RHSA-2026:3782
- https://access.redhat.com/errata/RHSA-2026:3958
- https://access.redhat.com/errata/RHSA-2026:3960
- https://access.redhat.com/security/cve/CVE-2026-21884
- https://bugzilla.redhat.com/show_bug.cgi?id=2428421
- https://github.com/remix-run/react-router
- https://github.com/remix-run/react-router/blob/react-router%407.12.0/CHANGELOG.md#v7120
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-21884.json
More remix-run React-router vulnerabilities
- TI-2026-40200 React Router: Unauthenticated Denial of Service via Inefficient Route Matching CVSS 4.0HIGH 8.7
- TI-2026-30645 React Router vulnerable to DoS via unbounded path expansion in __manifest endpoint CVSS 3.1HIGH 7.5
- TI-2026-26400 React Router vulnerable to Denial of Service via reflected user input in single-fetch CVSS 3.1HIGH 7.5
- TI-2026-17723 React Router vulnerable to XSS via Open Redirects CVSS 3.1HIGH 8.0
- TI-2026-30532 Deserialization of untrusted data in remix-run react-router CVSS 3.1HIGH 8.1
- TI-2026-28995 Open redirect in remix-run react-router CVSS 4.0MEDIUM 6.6
Sources
- CVE-2026-21884 · CVE Program
- CVE-2026-21884 · NVD
- FIRST EPSS
- GHSA-8v8x-cx79-35w7 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-21884 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences