# CVE-2026-21884: React Router SSR XSS in ScrollRestoration

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2026-01-08T20:50:05.000Z
- Modified: 2026-09-08T16:45:04.190Z
- Also known as: GHSA-8v8x-cx79-35w7
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- remix-run react-router: @remix-run/react < 2.17.3; react-router  >= 7.0.0, < 7.12.0
- automation-platform-ui: no versions given (not affected: from 0:2.6.6-1.el9ap before *)
- ansible-automation-platform-26/gateway-rhel9: no versions given (not affected: from 1772543959 before *)
- rhoai/odh-dashboard-rhel9: no versions given (not affected: from 1772093424 before *; from 1779189627 before *)
- rhoai/odh-mod-arch-model-registry-rhel9: no versions given (not affected: from 1772093498 before *; from 1778666987 before *)
- rhoai/odh-mod-arch-gen-ai-rhel9: no versions given (not affected: from 1778473763 before *)
- kueue/kueue-must-gather-rhel9: no versions given
- kueue/kueue-operator-bundle: no versions given
- kueue/kueue-rhel9: no versions given
- kueue/kueue-rhel9-operator: no versions given
- ipa: no versions given
- react-router (npm): from 7.0.0 before 7.12.0
- @remix-run/react (npm): before 2.17.3
- shopify react-router: from 7.0.0 up to 7.11.0
- shopify remix-run/react: before 2.17.3

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N`
- redhat-SADP: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N`

## References

- <https://github.com/remix-run/react-router/security/advisories/GHSA-8v8x-cx79-35w7> (third-party-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-21884> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2428421> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-21884.json> (web)
- <https://access.redhat.com/errata/RHSA-2026:3958> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:3960> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:3782> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:19712> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-21884> (advisory)
- <https://github.com/remix-run/react-router/pull/14705> (web)
- <https://github.com/remix-run/react-router/commit/c89c32c562a7723c45ee71dab1c892acaf7a608d> (web)
- <https://github.com/remix-run/react-router> (package)
- <https://github.com/remix-run/react-router/blob/react-router%407.12.0/CHANGELOG.md#v7120> (web)

## Sources

- CVE List: [CVE-2026-21884](https://www.cve.org/CVERecord?id=CVE-2026-21884), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-8v8x-cx79-35w7](https://github.com/advisories/GHSA-8v8x-cx79-35w7), CC-BY-4.0, modified 2026-09-08
- NVD: [CVE-2026-21884](https://nvd.nist.gov/vuln/detail/CVE-2026-21884), Public domain, modified 2026-07-15

---

Page: https://cve.day/CVE-2026-21884 · Whole record: https://cve.day/CVE-2026-21884.json · Rebuilt by cve.day 2026-11-25T22:59:12.706Z
