7.6
HIGH CVSS 3.1
CVE-2025-59057
React Router has XSS Vulnerability
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.

INFO

Published Date :

Jan. 10, 2026, 3:15 a.m.

Last Modified :

Jan. 30, 2026, 6:19 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2025-59057 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Shopify react-router
2 Shopify remix-run\/react
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
Solution
Update @remix-run/react or react-router to patched versions to fix XSS.
  • Update @remix-run/react to version 2.17.1 or later.
  • Update react-router to version 7.9.0 or later.
Public PoC/Exploit Available at Github

CVE-2025-59057 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2025-59057.

URL Resource
https://github.com/remix-run/react-router/security/advisories/GHSA-3cgp-3xvw-98x8 Third Party Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-59057 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-59057 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

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.

Dockerfile CSS TypeScript

Updated: 2 weeks, 3 days ago
0 stars 0 fork 0 watcher
Born at : Jan. 13, 2026, 6:31 a.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-59057 vulnerability anywhere in the article.

  • Daily CyberSecurity
Critical React Router Flaws: CVE-2025-61686 Exposes Server Files

Developers relying on the popular React Router library are being urged to patch their applications immediately following the disclosure of multiple high-severity vulnerabilities. The flaws, ranging fr ... Read more

Published Date: Jan 12, 2026 (2 weeks, 5 days ago)

The following table lists the changes that have been made to the CVE-2025-59057 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jan. 30, 2026

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:shopify:react-router:*:*:*:*:*:node.js:*:* versions from (including) 7.0.0 up to (including) 7.8.2 *cpe:2.3:a:shopify:remix-run/react:*:*:*:*:*:node.js:*:* versions from (including) 1.15.0 up to (including) 2.17.0
    Added Reference Type GitHub, Inc.: https://github.com/remix-run/react-router/security/advisories/GHSA-3cgp-3xvw-98x8 Types: Third Party Advisory
  • New CVE Received by [email protected]

    Jan. 10, 2026

    Action Type Old Value New Value
    Added 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.
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
    Added CWE CWE-79
    Added Reference https://github.com/remix-run/react-router/security/advisories/GHSA-3cgp-3xvw-98x8
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.6
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact