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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-05-17 · Modified: 2024-08-03
- Aliases: GHSA-8796-gc9j-63rv, GHSA-cg57-p69r-3m7p
- Record: https://cvemate.com/vulnerability/CVE-2021-32622 · JSON: https://cvemate.com/vulnerability/CVE-2021-32622/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.373%, percentile 33.328%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- matrix-org matrix-react-sdk: \< 3.21.0
- matrix-react-sdk\_project matrix-react-sdk: \< 3.21.0
- Npm matrix-react-sdk (Npm): \< 3.21.0

## References

- <https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-8796-gc9j-63rv>
- <https://github.com/matrix-org/matrix-react-sdk/pull/5981>
- <https://github.com/matrix-org/matrix-react-sdk>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32622>
- <https://www.npmjs.com/package/matrix-react-sdk>

---

Data as of 2026-12-05T05:31:45.574Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
