All reports
High

React Router has XSS Vulnerability

Affected versions

Affected versions
>= 1.15.0, <= 2.17.0
Fixed version
2.17.1
Affected versions
>= 7.0.0, <= 7.8.2
Fixed version
7.9.0

Exploitation

CVE-2025-59057

Probability of exploitation in the next 30 days: 0.50%

FIRST EPSS · 2026-11-20

Description

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

Links

Credits

  • zaddy6
  • arthurgervais
  • HF-CYGG