{"id":"GHSA-3cgp-3xvw-98x8","revision":"987961fca3a44c53a709e74dc3900acd","records":[{"revision":"987961fca3a44c53a709e74dc3900acd","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-3cgp-3xvw-98x8","aliases":["CVE-2025-59057"],"title":"React Router has XSS Vulnerability","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.\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>`).","state":0,"publishedAt":"2026-01-08T20:42:20+00:00","modifiedAt":"2026-09-08T16:45:04.2404178+00:00","affected":[{"ecosystem":"npm","name":"react-router","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"7.0.0"},{"kind":"fixed","version":"7.9.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@remix-run/react","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.15.0"},{"kind":"fixed","version":"2.17.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/remix-run/react-router/security/advisories/GHSA-3cgp-3xvw-98x8","https://nvd.nist.gov/vuln/detail/CVE-2025-59057","https://github.com/remix-run/react-router/pull/14316","https://github.com/remix-run/react-router/commit/0e774855797fcb3c7538c269158f4541beb55a1b","https://access.redhat.com/errata/RHSA-2026:19712","https://access.redhat.com/errata/RHSA-2026:3782","https://access.redhat.com/errata/RHSA-2026:3958","https://access.redhat.com/errata/RHSA-2026:3960","https://access.redhat.com/security/cve/CVE-2025-59057","https://bugzilla.redhat.com/show_bug.cgi?id=2428426","https://github.com/remix-run/react-router","https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v790","https://github.com/remix-run/react-router/releases/tag/react-router@7.9.0","https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-59057.json"],"sourceUrl":"https://github.com/advisories/GHSA-3cgp-3xvw-98x8","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-3cgp-3xvw-98x8","identifiers":["GHSA-3cgp-3xvw-98x8","CVE-2025-59057"]},"retained":false,"historicalAffected":[]}],"coverage":[]}