NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2025-59057: React Router has XSS Vulnerability

highCVSS 3.1 7.6GHSA-3cgp-3xvw-98x8

A XSS vulnerability exists in in React Router's 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 ( ) or Data Mode (createBrowserRouter/ ).

Published Jan 8, 2026 · Updated Sep 8, 2026

Affected packages

react-router

Ecosystem
npm
Affected
>= 7.0.0, <= 7.8.2
Fixed in
7.9.0
Check
npm ls react-router

@remix-run/react

Ecosystem
npm
Affected
>= 1.15.0, <= 2.17.0
Fixed in
2.17.1
Check
npm ls @remix-run/react

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to zaddy6, arthurgervais, HF-CYGG.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries