LiveActive security incident?Get immediate response
CVE Record

CVE-2026-21884: React Router SSR XSS in ScrollRestoration

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.

HighCVSS 8.2Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This is a high-severity cross-site scripting issue in React Router SSR. A vulnerable app can render attacker-influenced JavaScript through ScrollRestoration keys when specific Framework Mode SSR usage is present. Exposure depends on configuration, not just package presence.

Executive priority

Treat this as a priority patch for internet-facing SSR React applications handling user-controlled content. The risk is configuration-dependent, so teams should rapidly identify affected usage before assuming broad exposure.

Technical view

CVE-2026-21884 affects @remix-run/react before 2.17.3 and react-router 7.0.0 through 7.11.0. The vulnerable path is <ScrollRestoration> in Framework Mode SSR when getKey or storageKey uses untrusted content to generate keys, enabling XSS during SSR.

Likely exposure

Likely exposure is public React Router or Remix applications using Framework Mode with server-side rendering and ScrollRestoration getKey or storageKey values derived from untrusted input. Declarative Mode, Data Mode, and disabled Framework Mode SSR are stated as not impacted.

Exploitation context

The bundle lists KEV as false and provides no cited evidence of active exploitation. The CVSS vector indicates network reachability, low attack complexity, no privileges, and required user interaction, with high confidentiality impact and changed scope.

Researcher notes

Do not flag package version alone as exploitable. The vulnerable condition requires Framework Mode SSR plus ScrollRestoration getKey/storageKey use with untrusted key material. Evidence in the bundle is sufficient for affected-version and fixed-version analysis, but not for active exploitation claims.

Mitigation direction

  • Upgrade @remix-run/react to 2.17.3 or later.
  • Upgrade react-router to 7.12.0 or later.
  • Avoid deriving getKey or storageKey from untrusted content.
  • Disable Framework Mode SSR where vendor-supported and operationally acceptable.
  • Check React Router and Red Hat guidance for downstream package-specific fixes.

Validation and detection

  • Inventory @remix-run/react and react-router versions across applications.
  • Confirm whether Framework Mode SSR is enabled.
  • Search usage of <ScrollRestoration> with getKey or storageKey props.
  • Trace key-generation inputs for user-controlled or external content.
  • Confirm apps use Declarative Mode or Data Mode before deprioritizing.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-21884 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.2 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

2CVSS vectors
5Timeline events
2ADP providers
9Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total

CVSS vector scores

2 official scores

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.2CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N2.84.7GitHub_M
8.2CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N2.84.7redhat-SADP

Vulnerability scoring details

Base CVSS 3.1 score

8.2High
CVSS 3.1 vector shape for CVE-2026-21884Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. ADP timelineredhat-SADP

    Made public.

  3. CVE publishedCVE Program

    The CVE record was published.

  4. ADP timelineredhat-SADP

    Reported to Red Hat.

  5. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
redhat-SADPreact-router: @remix-run/react: React Router SSR XSS in ScrollRestoration
other:Red Hat severity ratingcvssV3_1
  • 2026-01-10T04:01:46.246Z: Reported to Red Hat.
  • 2026-01-10T02:41:44.944Z: Made public.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
remix-runreact-router@remix-run/react < 2.17.3, react-router >= 7.0.0, < 7.12.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-79 · source CWE mapping

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.