CVE-2025-59057
JSON

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 packageVersionsReported by
remix-run react-router@remix-run/react >= 1.15.0, < 2.17.1, react-router >= 7.0.0, < 7.9.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.9.0GitHub Advisory Database

All scores

GitHub_M7.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
redhat-SADP7.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
GitHub7.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N

Classification

CWE-79

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

https://github.com/remix-run/react-router/security/advisories/GHSA-3cgp-3xvw-98x8third-party-advisory, web
https://access.redhat.com/security/cve/CVE-2025-59057vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2428426issue-tracking, web
https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-59057.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-2025-59057advisory
https://github.com/remix-run/react-router/pull/14316web
https://github.com/remix-run/react-router/commit/0e774855797fcb3c7538c269158f4541beb55a1bweb
https://github.com/remix-run/react-routerpackage

Sources

SourceRecordLicence
CVE ListCVE-2025-59057 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-3cgp-3xvw-98x8 changed 2026-09-08CC-BY-4.0
NVDCVE-2025-59057 changed 2026-07-15Public domain