{"schemaVersion":3,"id":"CVE-2025-59057","aliases":["GHSA-3cgp-3xvw-98x8"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-01-10T02:40:25.142Z","modified":"2026-07-15T01:25:51.670Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.6,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.6,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":7.6,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","exploitability":5.9,"impact":7.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.6,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00503,"percentile":0.41798,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.008000000000000021,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00511},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00503,"percentile":0.41798}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00511,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00503,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00503,"percentile":0.41798}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"Npm","product":"react-router","name":"react-router","label":"react-router","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/react-router","purlType":"npm","versions":[{"text":"≥ 7.0.0, < 7.9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 7.0.0, < 7.9.0","eol":null,"hubHref":null},{"vendor":"@remix-run","product":"react","name":"@remix-run/react","label":"react","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@remix-run/react","purlType":"npm","versions":[{"text":"≥ 1.15.0, < 2.17.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.15.0, < 2.17.1","eol":null,"hubHref":null},{"vendor":"remix-run","product":"react-router","name":"react-router","label":"react-router","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"@remix-run/react >= 1.15.0, < 2.17.1","noFixRecorded":false,"fixedIn":null},{"text":"react-router  >= 7.0.0, < 7.9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"@remix-run/react >= 1.15.0, < 2.17.1 | react-router  >= 7.0.0, < 7.9.0","eol":null,"hubHref":"/vendor/remix-run/react-router"},{"vendor":"shopify","product":"react-router","name":"react-router","label":"react-router","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 7.0.0, ≤ 7.8.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 7.0.0, ≤ 7.8.2","eol":null,"hubHref":"/vendor/shopify/react-router"},{"vendor":"shopify","product":"remix-run\\/react","name":"remix-run\\/react","label":"remix-run\\/react","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.15.0, ≤ 2.17.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.15.0, ≤ 2.17.0","eol":null,"hubHref":"/vendor/shopify/remix-runreact"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/remix-run/react-router/security/advisories/GHSA-3cgp-3xvw-98x8","label":"github.com/remix-run/react-router/security/advisories/GHSA-3cgp-3xvw-98x8","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Third Party Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-59057","label":"access.redhat.com/security/cve/CVE-2025-59057","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","WEB"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2428426","label":"bugzilla.redhat.com/show_bug.cgi?id=2428426","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","WEB"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-59057.json","label":"security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-59057.json","hostname":"security.access.redhat.com","tags":["X Sadp Csaf Vex","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2026:3958","label":"access.redhat.com/errata/RHSA-2026:3958","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2026:3960","label":"access.redhat.com/errata/RHSA-2026:3960","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2026:3782","label":"access.redhat.com/errata/RHSA-2026:3782","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19712","label":"access.redhat.com/errata/RHSA-2026:19712","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59057","label":"nvd.nist.gov/vuln/detail/CVE-2025-59057","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/remix-run/react-router/pull/14316","label":"github.com/remix-run/react-router/pull/14316","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/remix-run/react-router/commit/0e774855797fcb3c7538c269158f4541beb55a1b","label":"github.com/remix-run/react-router/commit/0e774855797fcb3c7538c269158f4541beb55a1b","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/remix-run/react-router","label":"github.com/remix-run/react-router","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v790","label":"github.com/remix-run/react-router/blob/main/CHANGELOG.md","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/remix-run/react-router/releases/tag/react-router@7.9.0","label":"github.com/remix-run/react-router/releases/tag/react-router@7.9.0","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["RHSA-2026:3958"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-01-10T02:40:25.142Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-15T01:25:51.670Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T13:22:12.735Z","stale":false,"partial":false}}