Quick answers
- Is CVE-2026-21884 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-21884 being exploited in the wild.
- How severe is CVE-2026-21884?
- High severity, with a CVSS score of 8.2, published 10 January 2026.
- Which products and versions are affected?
- @remix-run/react (npm) < 2.17.3, SEMVER:introduced=0,fixed=2.17.3; Remix React >= 7.0.0, < 7.12.0.
- Is there a fix for CVE-2026-21884?
- Yes. @remix-run/react (npm): upgrade to 2.17.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-21884 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-21884?
- Check whether you run @remix-run/react (npm), Remix React or Shopify Remix-Run\ at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- @remix-run/react (npm): upgrade to 2.17.3 or later
npm install @remix-run/react@2.17.3
Technical details
The vulnerability is a CWE-79 improper neutralization of user-controllable input in web page generation (XSS). The vulnerable component is the ScrollRestoration API in React Router's Framework Mode during server-side rendering (SSR). The attack vector requires user interaction and network access, with no special privileges required. When developers use untrusted input to generate the getKey or storageKey properties in ScrollRestoration, the library fails to properly sanitize this input before including it in the SSR output, allowing JavaScript injection. The vulnerability does not affect applications using Declarative Mode (BrowserRouter) or Data Mode (createBrowserRouter/RouterProvider), or those with SSR disabled. Patches are available: @remix-run/react <2.17.3 and react-router <7.12.0 are vulnerable; update to 2.17.3 and 7.12.0 respectively.
Affected products
- Remix @remix-run/react < 2.17.3
- Remix react-router >= 7.0.0, < 7.12.0
Identifiers
- CVE-2026-21884
- GHSA-8v8x-cx79-35w7
Timeline
- 2026-01-08: disclosed: Vulnerability disclosed and published to GitHub Advisory Database
- 2026-01-08: patched: Patches released: @remix-run/react 2.17.3 and react-router 7.12.0