{"schema_version":"1.7.3","id":"GHSA-3cgp-3xvw-98x8","published":"2026-01-08T20:42:20Z","modified":"2026-02-03T03:16:18.791489Z","aliases":["CVE-2025-59057"],"summary":"React Router has XSS Vulnerability","details":"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.\n\n> [!NOTE]\n> 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>`).","affected":[{"package":{"name":"react-router","ecosystem":"npm","purl":"pkg:npm/react-router"},"ranges":[{"type":"SEMVER","events":[{"introduced":"7.0.0"},{"fixed":"7.9.0"}]}],"database_specific":{"last_known_affected_version_range":"<= 7.8.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-3cgp-3xvw-98x8/GHSA-3cgp-3xvw-98x8.json"}},{"package":{"name":"@remix-run/react","ecosystem":"npm","purl":"pkg:npm/%40remix-run/react"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.15.0"},{"fixed":"2.17.1"}]}],"database_specific":{"last_known_affected_version_range":"<= 2.17.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-3cgp-3xvw-98x8/GHSA-3cgp-3xvw-98x8.json"}}],"references":[{"type":"WEB","url":"https://github.com/remix-run/react-router/security/advisories/GHSA-3cgp-3xvw-98x8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59057"},{"type":"PACKAGE","url":"https://github.com/remix-run/react-router"}],"database_specific":{"cwe_ids":["CWE-79"],"github_reviewed":true,"github_reviewed_at":"2026-01-08T20:42:20Z","nvd_published_at":"2026-01-10T03:15:48Z","severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N"}]}