Live threats

All CVEs / Matrix-react-sdk Project

CVE-2021-32622Matrix-react-sdk Project Matrix-react-sdk

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
0.4%
probability of exploitation in 30 days · percentile 23
Auth required
Yes
Published
May 17, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-74, CWE-434
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Matrix-react-sdk.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm matrix-react-sdk < 3.21.0 3.21.0 npm install matrix-react-sdk@3.21.0
npm matrix-react-sdk < 3.21.0 3.21.0 npm install matrix-react-sdk@3.21.0

Per OSV / GitHub Advisories (GHSA-8796-gc9j-63rv, GHSA-cg57-p69r-3m7p). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
matrix-react-sdk_projectmatrix-react-sdk< 3.21.0

Official sources

References

Links published by the sources. Open them with care.