HIGH 7.6

CVE-2025-59057

React Router has XSS Vulnerability

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

Affected Maven artifacts (4)

ArtifactAffected versionsFixed in
org.mvnpm » react-routervia npm react-router
>= 7.0.0, < 7.9.0
7.9.0
org.mvnpm.at.remix-run » reactvia npm @remix-run/react
>= 1.15.0, < 2.17.1
2.17.1
org.webjars » react-routervia npm react-router
>= 7.0.0, < 7.9.0
7.9.0
org.webjars.npm » react-routervia npm react-router
>= 7.0.0, < 7.9.0
7.9.0

Blast radius

3affected artifacts
34affected versions
2dependent artifacts (est.)
102dependent versions

0% of the dependent artifacts (0) still pull an affected version in their latest release.

DepthDependent versions
Direct
102

Most used dependents

Computed from the dependency graph of build 20261129.2353 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

Other ecosystems

Also affects npm (2 packages) . See all on OSV