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?
| Product | Affected 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
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.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
- Prerequisites multiplied together0.420
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 0.42 × threat 0.852.856
- Rounded to one decimal between 0.1 and 102.9
Exploitation and evidence timeline
- 10 Jan 2026 Published
- 3 Dec 2026 Risk 2.9 (cvss fallback)
Weakness
CWE-79
References
- https://github.com/remix-run/react-router/security/advisories/GHSA-3cgp-3xvw-98x8vendor-advisory
- https://access.redhat.com/security/cve/CVE-2025-59057redhat, vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2428426issue-tracking, redhat
- https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-59057.jsonx-sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:3958redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:3960redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:3782redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19712redhat, vendor-advisory
- CVE-2025-59057 on CVE.org