CVE-2025-59057 Details
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.
A cross-site scripting (XSS) vulnerability has been identified in React Router's meta() and <Meta> APIs within Framework Mode. This issue affects @remix-run/react versions 1.15.0 prior to 2.17.0 and React Router versions 7.0.0 prior to 7.8.2. The vulnerability arises when generating script:ld+json tags, allowing arbitrary JavaScript execution during server-side rendering (SSR) if untrusted content is used. Applications in Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>) are not impacted.
Users can upgrade to @remix-run/react version 2.17.1 or React Router version 7.9.0 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:19712 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:3782 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:3958 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:3960 | redhat-SADP | |
| https://access.redhat.com/security/cve/CVE-2025-59057 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2428426 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-59057.json | redhat-SADP | |
| https://github.com/remix-run/react-router/security/advisories/GHSA-3cgp-3xvw-98x8 | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | redhat-SADP |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| shopify react-router | >= 7.0.0, <= 7.8.2 |
CPE
Remediation
| |
| shopify remix-run/react | >= 1.15.0, <= 2.17.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 30, 2026 | Initial Analysis | [email protected] |
| Jan 10, 2026 | New CVE Received | [email protected] |