CVE-2025-59057: React Router has XSS Vulnerability
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.
Security readout for executives and security teams
Plain-English summary
This is a high-severity cross-site scripting issue in React Router/Remix apps using Framework Mode. If untrusted data is placed into JSON-LD metadata during server rendering, an attacker could cause JavaScript to run in a user's browser. Apps using BrowserRouter or RouterProvider modes are stated as not impacted.
Executive priority
Prioritize patching public SSR applications first, especially those rendering metadata from customer, CMS, partner, or search-indexed content. The issue has a clear vendor fix and a high confidentiality impact, but no cited evidence of active exploitation in the supplied sources.
Technical view
CVE-2025-59057 is CWE-79 in @remix-run/react 1.15.0-2.17.0 and react-router 7.0.0-7.8.2. The vulnerable surface is meta()/<Meta> generation of script:ld+json tags in Framework Mode during SSR when untrusted content is used. Fixed versions are @remix-run/react 2.17.1 and react-router 7.9.0.
Likely exposure
Exposure is most likely in server-rendered React Router Framework Mode applications that generate JSON-LD metadata from user-controlled or external content. Declarative Mode with <BrowserRouter> and Data Mode with createBrowserRouter/<RouterProvider> are listed as not impacted.
Exploitation context
The provided sources do not report active exploitation, and KEV is false. The CVSS vector indicates network reachability, low attack complexity, low privileges, and required user interaction. Treat internet-facing SSR applications using affected versions as priority review targets.
Researcher notes
The key triage question is mode and data flow, not just package presence. Affected versions are only exploitable in Framework Mode when untrusted content reaches script:ld+json generation through meta()/<Meta>. Evidence provided does not support claims about exploit kits, scanning, or broader React impact.
Mitigation direction
Upgrade @remix-run/react to 2.17.1 or later where used.
Upgrade react-router to 7.9.0 or later where used.
Review vendor guidance for downstream Red Hat-packaged products.
Avoid placing untrusted content into JSON-LD metadata until patched.
Apply normal output encoding and content validation around metadata generation.
Validation and detection
Check package manifests and lockfiles for affected React Router or Remix versions.
Identify applications running React Router Framework Mode with server rendering.
Inspect route meta() and <Meta> JSON-LD generation for untrusted data flows.
Confirm deployed artifacts use fixed versions, not only source branches.
Verify BrowserRouter or RouterProvider-only apps are not incorrectly flagged.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-79: User-session and phishing behavior lookup
Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-79 · source CWE mapping
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.