{"schemaVersion":3,"id":"CVE-2026-21884","aliases":["GHSA-8v8x-cx79-35w7"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-01-10T02:41:44.944Z","modified":"2026-07-15T01:19:46.847Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.2,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/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":8.2,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/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":8.2,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","exploitability":7.2,"impact":7.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.2,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00531,"percentile":0.4369,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.008000000000000021,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00539},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00531,"percentile":0.4369}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00539,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00531,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00531,"percentile":0.4369}]},"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.12.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 7.0.0, < 7.12.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":"< 2.17.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.17.3","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 < 2.17.3","noFixRecorded":false,"fixedIn":null},{"text":"react-router  >= 7.0.0, < 7.12.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"@remix-run/react < 2.17.3 | react-router  >= 7.0.0, < 7.12.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.11.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 7.0.0, ≤ 7.11.0","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":"< 2.17.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.17.3","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-8v8x-cx79-35w7","label":"github.com/remix-run/react-router/security/advisories/GHSA-8v8x-cx79-35w7","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Third Party Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-21884","label":"access.redhat.com/security/cve/CVE-2026-21884","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","WEB"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2428421","label":"bugzilla.redhat.com/show_bug.cgi?id=2428421","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","WEB"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-21884.json","label":"security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-21884.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-2026-21884","label":"nvd.nist.gov/vuln/detail/CVE-2026-21884","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/remix-run/react-router/pull/14705","label":"github.com/remix-run/react-router/pull/14705","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/remix-run/react-router/commit/c89c32c562a7723c45ee71dab1c892acaf7a608d","label":"github.com/remix-run/react-router/commit/c89c32c562a7723c45ee71dab1c892acaf7a608d","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/react-router%407.12.0/CHANGELOG.md#v7120","label":"github.com/remix-run/react-router/blob/react-router%407.12.0/CHANGELOG.md","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["RHSA-2026:3958"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-01-10T02:41:44.944Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-15T01:19:46.847Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":33,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T13:55:56.970Z","stale":false,"partial":false}}