Vulnerability · Published May 17, 2021 · Assigned by GitHub_M

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

Medium 4.2

In plain English

A medium-severity injection in matrix-react-sdk from matrix-org. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 31% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.2Medium
Exploit odds (30 days)0.4%top 68.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmmatrix-react-sdk3.21.0GHSA-8796-gc9j-63rv
npmmatrix-react-sdk3.21.0GHSA-cg57-p69r-3m7p

Affected products (as reported)

VendorProductVersions
matrix-org matrix-react-sdk < 3.21.0

Weakness: CWE-74 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L

References