LiveActive security incident?Get immediate response
CVE Record

CVE-2021-32622: File upload local preview can run embedded scripts after user interaction

Matrix-React-SDK is a react-based SDK for inserting a Matrix chat/voip client into a web page. Before version 3.21.0, when uploading a file, the local file preview can lead to execution of scripts embedded in the uploaded file. This can only occur after several user interactions to open the preview in a separate tab. This only impacts the local user while in the process of uploading. It cannot be exploited remotely or by other users. This vulnerability is patched in version 3.21.0.

MediumCVSS 4.2Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

In Matrix React SDK versions before 3.21.0, a file being uploaded could execute embedded script in its local preview, but only after the uploader performs several actions to open the preview in a separate tab. The sources say it affects only that local user during upload and cannot be exploited remotely or by other users.

Executive priority

Treat this as a contained medium-priority client-side issue. It deserves upgrade tracking, but the cited sources describe local-only impact, high user interaction, and no remote exploitation path from other users.

Technical view

The issue is CWE-74 in the upload local preview path: embedded script content in an uploaded file could run in the preview context before version 3.21.0. CVSS 3.1 is 4.2 with local attack vector, high complexity, low privileges, required user interaction, and low confidentiality, integrity, and availability impact.

Likely exposure

Exposure is limited to applications embedding matrix-org matrix-react-sdk below 3.21.0 and providing file upload preview behavior. SaaS or self-hosted Matrix clients built on newer SDKs are not indicated as affected by the provided sources.

Exploitation context

The provided sources do not indicate active exploitation, and the CVE is not listed as KEV in the bundle. Abuse requires local user involvement during upload and opening the local preview in a separate tab; it is not described as remotely triggerable by another user.

Researcher notes

Do not broaden impact beyond matrix-react-sdk before 3.21.0 based on the provided evidence. The advisory’s key constraints are local preview, several user interactions, separate-tab preview, and impact limited to the uploading user.

Mitigation direction

  • Upgrade matrix-react-sdk to version 3.21.0 or later.
  • Identify web clients embedding matrix-react-sdk and confirm their packaged SDK version.
  • If immediate upgrade is unavailable, check vendor guidance for supported temporary controls.
  • Prioritize remediation for environments allowing broad file uploads by less-trusted users.

Validation and detection

  • Check dependency manifests or lockfiles for matrix-react-sdk versions below 3.21.0.
  • Confirm deployed client bundles were rebuilt after the SDK upgrade.
  • Review release or advisory notes for GHSA-8796-gc9j-63rv coverage.
  • Verify file upload preview behavior is not using an affected SDK build.
Prepared
Confidence
high
Sources
4

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 · low confidence lookup

CWE-74: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. 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
description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-32622 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
Medium
CVSS
4.2 (3.1)
Known Exploited
No
Published

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

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.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

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
4.2CVSS 3.1MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L0.83.4Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

4.2Medium
CVSS 3.1 vector shape for CVE-2021-32622Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

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

Products and packages named in the record

VendorProductVersion / packageStatus
matrix-orgmatrix-react-sdk< 3.21.0Listed
Weakness

CWE details

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

CWE-74 · source CWE mapping

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.