CVE-2026-21884
JSON

8.2high

React Router SSR XSS in ScrollRestoration

Severity
8.2high CVSS:3.1 by GitHub_M
Exploit likelihood
0.53% (higher than 46% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-8v8x-cx79-35w7

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.

Affected

Product or packageVersionsReported by
remix-run react-router@remix-run/react < 2.17.3, react-router >= 7.0.0, < 7.12.0CVE List
automation-platform-uiNot specified
Not affected: from 0:2.6.6-1.el9ap before *
CVE List
ansible-automation-platform-26/gateway-rhel9Not specified
Not affected: from 1772543959 before *
CVE List
rhoai/odh-dashboard-rhel9Not specified
Not affected: from 1772093424 before *, from 1779189627 before *
CVE List
rhoai/odh-mod-arch-model-registry-rhel9Not specified
Not affected: from 1772093498 before *, from 1778666987 before *
CVE List
rhoai/odh-mod-arch-gen-ai-rhel9Not specified
Not affected: from 1778473763 before *
CVE List
kueue/kueue-must-gather-rhel9Not specifiedCVE List
kueue/kueue-operator-bundleNot specifiedCVE List
kueue/kueue-rhel9Not specifiedCVE List
kueue/kueue-rhel9-operatorNot specifiedCVE List
ipaNot specifiedCVE List
react-router (npm)from 7.0.0 before 7.12.0GitHub Advisory Database

All scores

GitHub_M8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
redhat-SADP8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
GitHub8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

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.

[!NOTE] This does not impact applications if developers have disabled server-side rendering in Framework Mode, or if they are using Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>).

NVD (es)

React Router es un router para React. En la versión de @remix-run/react anterior a la 2.17.3 y react-router de la 7.0.0 a la 7.11.0, existe una vulnerabilidad de XSS en la API de React Router en Modo Framework al usar las props getKey/storageKey durante la Renderización del Lado del Servidor, lo que podría permitir la ejecución arbitraria de JavaScript durante SSR si se utiliza contenido no confiable para generar las claves. No hay impacto si la renderización del lado del servidor en Modo Framework está deshabilitada, o si se está utilizando el Modo Declarativo () o el Modo de Datos (createBrowserRouter/). Este problema ha sido parcheado en la versión 2.17.3 de @remix-run/react y la versión 7.12.0 de react-router.

References

https://github.com/remix-run/react-router/security/advisories/GHSA-8v8x-cx79-35w7third-party-advisory, web
https://access.redhat.com/security/cve/CVE-2026-21884vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2428421issue-tracking, web
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-21884.jsonweb
https://access.redhat.com/errata/RHSA-2026:3958vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:3960vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:3782vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:19712vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2026-21884advisory
https://github.com/remix-run/react-router/pull/14705web
https://github.com/remix-run/react-router/commit/c89c32c562a7723c45ee71dab1c892acaf7a608dweb
https://github.com/remix-run/react-routerpackage

Sources

SourceRecordLicence
CVE ListCVE-2026-21884 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-8v8x-cx79-35w7 changed 2026-09-08CC-BY-4.0
NVDCVE-2026-21884 changed 2026-07-15Public domain