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)
| Artifact | Affected versions | Fixed 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
0% of the dependent artifacts (0) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 102 |
Most used dependents
- org.mvnpm » react-router-dom19 usages
- org.mvnpm » zudoku0 usages
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
References
| Advisory | NVD CVE-2025-59057 | nvd.nist.gov |
| Package | remix-run/react-router | github.com |
| Web | remix-run/react-router advisory GHSA-3cgp-3xvw-98x8 | github.com |
| Web | remix-run/react-router pull request #14316 | github.com |
| Web | remix-run/react-router commit 0e77485 | github.com |
| Web | errata/RHSA-2026:19712 | access.redhat.com |
| Web | errata/RHSA-2026:3782 | access.redhat.com |
| Web | errata/RHSA-2026:3958 | access.redhat.com |
| Web | errata/RHSA-2026:3960 | access.redhat.com |
| Web | security/cve/CVE-2025-59057 | access.redhat.com |
| Web | show_bug.cgi | bugzilla.redhat.com |
| Web | remix-run/react-router CHANGELOG.md | github.com |
| Web | remix-run/react-router release react-router@7.9.0 | github.com |
| Web | data/csaf/v2/vex/2025/cve-2025-59057.json | security.access.redhat.com |
