{"cve":"CVE-2026-21884","nvd":{"published":"2026-01-10T03:15:48.673","modified":"2026-07-15T02:18:31.757","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","score":8.2},"cwes":["CWE-79"],"references":["https://github.com/remix-run/react-router/security/advisories/GHSA-8v8x-cx79-35w7","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"],"products":["shopify:react-router","shopify:remix-run\\/react"],"source":"nvd","synced_at":"2026-10-19T22:19:41.481987139+00:00"},"epss":{"cve":"CVE-2026-21884","score":0.00531,"percentile":0.44894,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8v8x-cx79-35w7","url":"https://osv.dev/vulnerability/GHSA-8v8x-cx79-35w7","summary":"React Router SSR XSS in ScrollRestoration","modified":"2026-09-08T16:45:04.190133160Z","packages":[{"ecosystem":"npm","name":"react-router","purl":"pkg:npm/react-router","ranges":[">=7.0.0 <7.12.0"],"fixed":["7.12.0"]},{"ecosystem":"npm","name":"@remix-run/react","purl":"pkg:npm/%40remix-run/react","ranges":["<2.17.3"],"fixed":["2.17.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}