React Router XSS via Meta API in Framework Mode (1.15.0-2.17.0 & 7.0.0-7.8.2)
CVE-2025-59057 Published on January 10, 2026

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.

Github Repository NVD

Vulnerability Analysis

CVE-2025-59057 can be exploited with network access, requires user interaction and a small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality, with no impact on integrity, and no impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
LOW
User Interaction:
REQUIRED
Scope:
CHANGED
Confidentiality Impact:
HIGH
Integrity Impact:
LOW
Availability Impact:
NONE

Weakness Type

What is a XSS Vulnerability?

The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

CVE-2025-59057 has been classified to as a XSS vulnerability or weakness.


Products Associated with CVE-2025-59057

Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.

 
 
 
 
 
 

Affected Versions

remix-run react-router: Red Hat Ansible Automation Platform 2.6 for RHEL 9: Red Hat Ansible Automation Platform 2.6: Red Hat OpenShift AI 2.25: Red Hat OpenShift AI 2.25: Red Hat OpenShift AI 3.3: Red Hat OpenShift AI 3.3: Red Hat OpenShift AI 3.3: Red Hat Build of Kueue: Red Hat Build of Kueue: Red Hat Build of Kueue: Red Hat Build of Kueue: Red Hat Enterprise Linux 10: Red Hat Enterprise Linux 9:

Vulnerable Packages

The following package name and versions may be associated with CVE-2025-59057

Package Manager Vulnerable Package Versions Fixed In
npm react-router >= 7.0.0, <= 7.8.2 7.9.0
npm @remix-run/react >= 1.15.0, <= 2.17.0 2.17.1

Exploit Probability

EPSS
0.45%
Percentile
36.21%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.