{"id":"CVE-2025-59057","published":"2026-01-10T02:40:25Z","modified":"2026-07-15T01:25:51Z","title":"React Router has XSS Vulnerability","vendor":"remix-run","product":"react-router","tier":"tail","description":{"text":"React Router is a router for React. In @remix-run/react versions 1.15.0 through 2.17.0. and react-router versions 7.0.0 through 7.8.2, 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. There is no impact if the application is being used in Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>). This issue has been patched in @remix-run/react version 2.17.1 and react-router version 7.9.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00688,"percentile":0.47957,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/remix-run/react-router/security/advisories/GHSA-3cgp-3xvw-98x8","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-59057","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2428426","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-59057.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:3958","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:3960","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:3782","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19712","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":19.9,"factors":[{"name":"EPSS percentile","points":9.59},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.32}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-01-13","earliestUrl":"https://github.com/boroeurnprach/CVE-2025-59057-PoC","repos":[{"name":"boroeurnprach/CVE-2025-59057-PoC","url":"https://github.com/boroeurnprach/CVE-2025-59057-PoC","stars":0,"created":"2026-01-13"}]},"first":{"date":"2026-01-13","source":"PoC-in-GitHub","url":"https://github.com/boroeurnprach/CVE-2025-59057-PoC"},"provenance":"source"},"vendorSlug":"remix-run","affectedVersions":[{"vendor":"remix-run","product":"react-router","versions":["@remix-run/react >= 1.15.0, < 2.17.1","react-router  >= 7.0.0, < 7.9.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-12T18:12:33.289843Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"react-router","vulnerableRanges":[">=7.0.0, <7.9.0"],"patched":["7.9.0"],"from":["GHSA-3cgp-3xvw-98x8"],"provenance":"source"},{"ecosystem":"npm","package":"@remix-run/react","vulnerableRanges":[">=1.15.0, <2.17.1"],"patched":["2.17.1"],"from":["GHSA-3cgp-3xvw-98x8"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting vulnerability in React Router's meta() and Meta APIs, used in Framework Mode, when they generate script:ld+json tags; it affects @remix-run/react versions 1.15.0 through 2.17.0 and react-router versions 7.0.0 through 7.8.2. An attacker who can supply untrusted content used to build that tag, with a low-privilege account and a victim's interaction, can execute arbitrary JavaScript during server-side rendering, while Declarative Mode and Data Mode are not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:25Z"},"euvd":{"id":"EUVD-2026-1469","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-remix-run-react-router-cve-2025-59057","packageHistory":[{"cve":"CVE-2025-59057","published":"2026-01-10","fixed":"2.17.1","kev":false},{"cve":"CVE-2026-21884","published":"2026-01-10","fixed":"2.17.3","kev":false,"link":{"from":"CVE-2025-59057","to":"CVE-2026-21884","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@remix-run/react","fromFixed":"2.17.1","toFixed":"2.17.3","daysApart":0},{"kind":"similar","provenance":"machine","score":0.61,"basis":"same product + CWE + description similarity"}]}}],"package":"npm:@remix-run/react"}}