React Router XSS via Meta API in Framework Mode (1.15.0-2.17.0 & 7.0.0-7.8.2)
CVE-2025-59057 Published on January 10, 2026
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.
Vulnerability Analysis
CVE-2025-59057 can be exploited with network access, requires user interaction and a small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality, with no impact on integrity, and no impact on availability.
Weakness Type
What is a XSS Vulnerability?
The software 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.
CVE-2025-59057 has been classified to as a XSS vulnerability or weakness.
Products Associated with CVE-2025-59057
Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.
Affected Versions
remix-run react-router:- Version @remix-run/react >= 1.15.0, < 2.17.1 is affected.
- Version react-router >= 7.0.0, < 7.9.0 is affected.
- Version 0:2.6.6-1.el9ap and below * is unaffected.
- Version 1772543959 and below * is unaffected.
- Version 1772093424 and below * is unaffected.
- Version 1772093498 and below * is unaffected.
- Version 1779189627 and below * is unaffected.
- Version 1778473763 and below * is unaffected.
- Version 1778666987 and below * is unaffected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2025-59057
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| npm | react-router | >= 7.0.0, <= 7.8.2 | 7.9.0 |
| npm | @remix-run/react | >= 1.15.0, <= 2.17.0 | 2.17.1 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.