GitHub Advisoryadvisory · npm

GHSA-3cgp-3xvw-98x8 React Router has XSS Vulnerability

HIGH Published 2026-01-08 Modified 2026-09-08 Official page ↗
Aliases
CVE-2025-59057
Ecosystem
npm
Packages
react-router, @remix-run/react
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
Weaknesses
CWE-79
Reviewed
2026-01-08

Affected packages

• npm react-router: >= 7.0.0, < 7.9.0 → fixed in 7.9.0 • npm @remix-run/react: >= 1.15.0, < 2.17.1 → fixed in 2.17.1

Description

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

Related

Alias · CVE (1)

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References