Advisory

GHSA-cg57-p69r-3m7p

Also known as: CVE-2021-32622, GHSA-8796-gc9j-63rv

Summary

Improper file handling in matrix-react-sdk

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-02-10 23:46 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

matrix-react-sdk

npm · All systems

Affected

  • introduced 0, fixed 3.21.0 (semver)

Fixed versions

3.21.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences