{"id":"GHSA-3cgp-3xvw-98x8","summary":"React Router has XSS Vulnerability","details":"A XSS vulnerability exists in in React Router's `meta()`/`\u003cMeta\u003e` 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\u003e [!NOTE]\n\u003e This does not impact applications using [Declarative Mode](https://reactrouter.com/start/modes#declarative) (`\u003cBrowserRouter\u003e`) or [Data Mode](https://reactrouter.com/start/modes#data) (`createBrowserRouter`/`\u003cRouterProvider\u003e`).","aliases":["CVE-2025-59057"],"modified":"2026-09-08T16:45:06.392305173Z","published":"2026-01-08T20:42:20Z","database_specific":{"nvd_published_at":"2026-01-10T03:15:48Z","cwe_ids":["CWE-79"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2026-01-08T20:42:20Z"},"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":"WEB","url":"https://github.com/remix-run/react-router/pull/14316"},{"type":"WEB","url":"https://github.com/remix-run/react-router/commit/0e774855797fcb3c7538c269158f4541beb55a1b"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:19712"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:3782"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:3958"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:3960"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-59057"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2428426"},{"type":"PACKAGE","url":"https://github.com/remix-run/react-router"},{"type":"WEB","url":"https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v790"},{"type":"WEB","url":"https://github.com/remix-run/react-router/releases/tag/react-router@7.9.0"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-59057.json"}],"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":"\u003c= 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":"\u003c= 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"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N"}]}