Advisory

GHSA-3cgp-3xvw-98x8

Also known as: CVE-2025-59057

Summary

React Router has XSS Vulnerability

Details

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.

> [!NOTE]
> This does not impact applications using Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>).

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-01-08 20:42 UTC
Modified
2026-09-08 16:45 UTC

Affected packages and fixes

react-router

npm · All systems

Affected

  • introduced 7.0.0, fixed 7.9.0 (semver)

Fixed versions

7.9.0

Fix

@remix-run/react

npm · All systems

Affected

  • introduced 1.15.0, fixed 2.17.1 (semver)

Fixed versions

2.17.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences