CVE-2025-59057
React Router has XSS Vulnerability
7.6
HIGH
CVSS 3.1
EPSS 0.02%
Description
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>`).
How to fix CVE-2025-59057
To remediate CVE-2025-59057, upgrade the affected package to a fixed version below.
- —upgrade to 7.9.0 or later
- —upgrade to 2.17.1 or later
Is CVE-2025-59057 being exploited?
Low — EPSS is 0.0%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- >= 7.0.0, < 7.9.0
- >= 1.15.0, < 2.17.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N |