CVE-2025-59057
Modified Modified - Updated After Analysis

XSS Vulnerability in React Router meta()/Meta APIs During SSR

Vulnerability report for CVE-2025-59057, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-01-10

Last updated on: 2026-06-30

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-01-10
Last Modified
2026-06-30
Generated
2026-07-06
AI Q&A
2026-01-10
EPSS Evaluated
2026-07-05
NVD

Affected Vendors & Products

Showing 4 associated CPEs
Vendor Product Version / Range
remix-run react From 1.15.0 (inc) to 2.17.0 (inc)
remix-run react From 2.17.1 (inc)
react-router react-router From 7.0.0 (inc) to 7.8.2 (inc)
react-router react-router From 7.9.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product 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.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2025-59057 is a high-severity Cross-Site Scripting (XSS) vulnerability in React Router's meta() / <Meta> APIs when used in Framework Mode. It occurs during server-side rendering (SSR) when generating script:ld+json tags if untrusted content is used. This can allow attackers to execute arbitrary JavaScript code. The vulnerability affects @remix-run/react versions 1.15.0 through 2.17.0 and react-router versions 7.0.0 through 7.8.2. Applications using Declarative Mode or Data Mode are not affected. The issue has been patched in later versions. [1]

Impact Analysis

This vulnerability can allow an attacker to execute arbitrary JavaScript code during server-side rendering if untrusted content is used to generate JSON-LD script tags. This can lead to confidentiality breaches (high impact), as sensitive data could be exposed, and integrity issues (low impact), potentially compromising the security of the application. However, availability is not impacted. Exploitation requires network access and some user interaction. [1]

Mitigation Strategies

To mitigate this vulnerability, immediately upgrade the affected packages to the patched versions: update @remix-run/react to version 2.17.1 or later, and react-router to version 7.9.0 or later. Additionally, if possible, avoid using Framework Mode with meta()/ <Meta> APIs to generate script:ld+json tags from untrusted content during server-side rendering. Consider using Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter / <RouterProvider>) as these modes are not affected by this vulnerability. [1]

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-59057. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart