Skip to content

react-router

React Router has XSS Vulnerability

CVE-2025-59057Published 10 Jan 2026, 02:40 UTC

Real-world risk

2.9/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

7.6

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
react-routerNiche@remix-run/react >= 1.15.0, < 2.17.1; react-router >= 7.0.0, < 7.9.0—

What to do

Check the vendor advisory in the references below for fixed versions and workarounds.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.5% chance of exploitation in 30 days (percentile 45), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.420
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.8 × prerequisites 0.42 × threat 0.852.856
  4. Rounded to one decimal between 0.1 and 102.9

How the score works

Exploitation and evidence timeline

  1. 10 Jan 2026 Published
  2. 3 Dec 2026 Risk 2.9 (cvss fallback)

Weakness

CWE-79

References

Get alerts for react-router

Free email or text alerts when a vulnerability in react-router reaches risk 8 or higher. Nothing else.