LiveActive security incident?Get immediate response
CVE Record

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.

HighCVSS 7.6Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

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.
Prepared
Confidence
high
Sources
6

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.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2025-59057 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.6 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

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.

2CVSS vectors
5Timeline events
2ADP providers
9Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: partial

CVSS vector scores

2 official scores

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.

ScoreVersionSeverityVectorExploitImpactSource
7.6CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N2.34.7GitHub_M
7.6CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N2.34.7redhat-SADP

Vulnerability scoring details

Base CVSS 3.1 score

7.6High
CVSS 3.1 vector shape for CVE-2025-59057Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. ADP timelineredhat-SADP

    Made public.

  3. CVE publishedCVE Program

    The CVE record was published.

  4. ADP timelineredhat-SADP

    Reported to Red Hat.

  5. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
redhat-SADPreact-router: @remix-run/router: React Router XSS Vulnerability
other:Red Hat severity ratingcvssV3_1
  • 2026-01-10T04:02:14.375Z: Reported to Red Hat.
  • 2026-01-10T02:40:25.142Z: Made public.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
remix-runreact-router@remix-run/react >= 1.15.0, < 2.17.1, react-router >= 7.0.0, < 7.9.0Listed
Weakness

CWE details

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.