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 package | Versions | Reported by |
|---|---|---|
| remix-run react-router | @remix-run/react < 2.17.3, react-router >= 7.0.0, < 7.12.0 | CVE List |
| automation-platform-ui | Not specified Not affected: from 0:2.6.6-1.el9ap before * | CVE List |
| ansible-automation-platform-26/gateway-rhel9 | Not specified Not affected: from 1772543959 before * | CVE List |
| rhoai/odh-dashboard-rhel9 | Not specified Not affected: from 1772093424 before *, from 1779189627 before * | CVE List |
| rhoai/odh-mod-arch-model-registry-rhel9 | Not specified Not affected: from 1772093498 before *, from 1778666987 before * | CVE List |
| rhoai/odh-mod-arch-gen-ai-rhel9 | Not specified Not affected: from 1778473763 before * | CVE List |
| kueue/kueue-must-gather-rhel9 | Not specified | CVE List |
| kueue/kueue-operator-bundle | Not specified | CVE List |
| kueue/kueue-rhel9 | Not specified | CVE List |
| kueue/kueue-rhel9-operator | Not specified | CVE List |
| ipa | Not specified | CVE List |
| react-router (npm) | from 7.0.0 before 7.12.0 | GitHub Advisory Database |
| @remix-run/react (npm) | before 2.17.3 | GitHub Advisory Database |
| shopify react-router | from 7.0.0 up to 7.11.0 | NVD |
| shopify remix-run/react | before 2.17.3 | NVD |
All scores
| GitHub_M | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N |
| redhat-SADP | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N |
| GitHub | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-21884 changed 2026-07-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8v8x-cx79-35w7 changed 2026-09-08 | CC-BY-4.0 |
| NVD | CVE-2026-21884 changed 2026-07-15 | Public domain |