Advisory

GHSA-8796-gc9j-63rv

Also known as: CVE-2021-32622, GHSA-cg57-p69r-3m7p

Summary

File upload local preview can run embedded scripts after user interaction

Details

Impact

When uploading a file, the local file preview can lead to execution of scripts embedded in the uploaded file, but only 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.

Patches

This has been fixed by https://github.com/matrix-org/matrix-react-sdk/pull/5981, which is included in 3.21.0.

Workarounds

There are no known workarounds.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-05-17 20:51 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