{"id":"CVE-2026-21884","published":"2026-01-10T02:41:44Z","modified":"2026-07-15T01:19:46Z","title":"React Router SSR XSS in ScrollRestoration","vendor":"remix-run","product":"react-router","tier":"tail","description":{"text":"React Router is a router for React. In @remix-run/react version prior to 2.17.3. and react-router 7.0.0 through 7.11.0, a XSS vulnerability exists in in React Router's <ScrollRestoration> API in Framework Mode when using the getKey/storageKey props during Server-Side Rendering which could allow arbitrary JavaScript execution during SSR if untrusted content is used to generate the keys. There is no impact if server-side rendering in Framework Mode is disabled, or if Declarative Mode (<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>) is being used. This issue has been patched in @remix-run/react version 2.17.3 and react-router version 7.12.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00531,"percentile":0.45786,"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-8v8x-cx79-35w7","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-21884","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2428421","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-21884.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":14.9,"factors":[{"name":"EPSS percentile","points":9.16},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"remix-run","affectedVersions":[{"vendor":"remix-run","product":"react-router","versions":["@remix-run/react < 2.17.3","react-router  >= 7.0.0, < 7.12.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-01-13T04:55:52.068631Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"react-router","vulnerableRanges":[">=7.0.0, <7.12.0"],"patched":["7.12.0"],"from":["GHSA-8v8x-cx79-35w7"],"provenance":"source"},{"ecosystem":"npm","package":"@remix-run/react","vulnerableRanges":["<2.17.3"],"patched":["2.17.3"],"from":["GHSA-8v8x-cx79-35w7"],"provenance":"source"}],"summary":{"text":"The React Router <ScrollRestoration> component in Framework Mode contains a cross-site scripting flaw when the getKey or storageKey props are used during server-side rendering, affecting @remix-run/react before 2.17.3 and react-router 7.0.0 through 7.11.0. An attacker who can supply untrusted content used to generate those keys can achieve arbitrary JavaScript execution during SSR, requiring that a user interact with the page; the issue does not apply if SSR in Framework Mode is disabled or if Declarative Mode or Data Mode is used.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:10Z"},"euvd":{"id":"EUVD-2026-1466","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,"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"}]}},{"cve":"CVE-2026-21884","published":"2026-01-10","fixed":"2.17.3","kev":false}],"package":"npm:@remix-run/react"}}