{
  "id": "CVE-2026-21884",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-21884",
  "published_at": "2026-01-10T02:41:44.944Z",
  "title": "React Router SSR XSS in ScrollRestoration",
  "vendor": "remix-run",
  "product": "react-router",
  "cvss": {
    "score": 8.2,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": 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 \u003cScrollRestoration\u003e 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 (\u003cBrowserRouter\u003e) or Data Mode (createBrowserRouter/\u003cRouterProvider\u003e) is being used. This issue has been patched in @remix-run/react version 2.17.3 and react-router version 7.12.0.",
  "cwe": "CWE-79",
  "cpes": [
    "cpe:2.3:a:shopify:react-router:*:*:*:*:*:node.js:*:*",
    "cpe:2.3:a:shopify:remix-run\\/react:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.2
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "remix-run",
        "product": "react-router",
        "ranges": [
          "@remix-run/react \u003c 2.17.3",
          "react-router  \u003e= 7.0.0, \u003c 7.12.0"
        ],
        "fixed_in": [
          "2.17.3",
          "7.12.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade react-router to 2.17.3 or 7.12.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/remix-run/react-router/security/advisories/GHSA-8v8x-cx79-35w7"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
