7.6high
React Router has XSS Vulnerability
- Severity
- 7.6high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.50% (higher than 44% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-3cgp-3xvw-98x8
Description
React Router is a router for React. In @remix-run/react versions 1.15.0 through 2.17.0. and react-router versions 7.0.0 through 7.8.2, a XSS vulnerability exists in in React Router's meta()/<Meta> APIs in Framework Mode when generating script:ld+json tags which could allow arbitrary JavaScript execution during SSR if untrusted content is used to generate the tag. There is no impact if the application is being used in Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>). This issue has been patched in @remix-run/react version 2.17.1 and react-router version 7.9.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| remix-run react-router | @remix-run/react >= 1.15.0, < 2.17.1, react-router >= 7.0.0, < 7.9.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.9.0 | GitHub Advisory Database |
| @remix-run/react (npm) | from 1.15.0 before 2.17.1 | GitHub Advisory Database |
| shopify react-router | from 7.0.0 up to 7.8.2 | NVD |
| shopify remix-run/react | from 1.15.0 up to 2.17.0 | NVD |
All scores
| GitHub_M | 7.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N |
| redhat-SADP | 7.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N |
| GitHub | 7.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
React Router is a router for React. In @remix-run/react versions 1.15.0 through 2.17.0. and react-router versions 7.0.0 through 7.8.2, a XSS vulnerability exists in in React Router's meta()/<Meta> APIs in Framework Mode when generating script:ld+json tags which could allow arbitrary JavaScript execution during SSR if untrusted content is used to generate the tag. There is no impact if the application is being used in Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>). This issue has been patched in @remix-run/react version 2.17.1 and react-router version 7.9.0.
GitHub Advisory Database
A XSS vulnerability exists in in React Router's meta()/<Meta> APIs in Framework Mode when generating script:ld+json tags which could allow arbitrary JavaScript execution during SSR if untrusted content is used to generate the tag.
[!NOTE] This does not impact applications using Declarative Mode (
<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>).
NVD (es)
React Router es un router para React. En las versiones 1.15.0 a 2.17.0 de @remix-run/react y las versiones 7.0.0 a 7.8.2 de react-router, existe una vulnerabilidad XSS en las APIs meta()/ de React Router en Modo Framework al generar etiquetas script:ld+json, lo que podría permitir la ejecución arbitraria de JavaScript durante el SSR si se utiliza contenido no confiable para generar la etiqueta. No hay impacto si la aplicación se está utilizando en Modo Declarativo () o Modo de Datos (createBrowserRouter/). Este problema ha sido parcheado en la versión 2.17.1 de @remix-run/react y la versión 7.9.0 de react-router.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-59057 changed 2026-07-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3cgp-3xvw-98x8 changed 2026-09-08 | CC-BY-4.0 |
| NVD | CVE-2025-59057 changed 2026-07-15 | Public domain |