NetSight
high7.6

CVE-2025-59057

React Router has XSS Vulnerability

Impact

A XSS vulnerability exists in in React Router's `meta()`/`<Meta>` APIs in [Framework Mode](https://reactrouter.com/start/modes#framework) 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](https://reactrouter.com/start/modes#declarative) (`<BrowserRouter>`) or [Data Mode](https://reactrouter.com/start/modes#data) (`createBrowserRouter`/`<RouterProvider>`).

Affected packages

EcosystemPackageAffectedFixed in
npmreact-router>= 7.0.0, <= 7.8.27.9.0
npm@remix-run/react>= 1.15.0, <= 2.17.02.17.1

Affected products

VendorProductAffected versions
ShopifyReact-Router
from 7.0.0 through 7.8.2
ShopifyRemix-Run\/React
from 1.15.0 through 2.17.0

Weakness classification

References