CVE-2021-32622
HIGH 7.8CVSS 3.1File upload local preview can run embedded scripts after user interaction
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.
- Published
- 17 May 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-434CWE-74
- Also known as
- GHSA-8796-gc9j-63rvGHSA-cg57-p69r-3m7p
- Sources
- NVDJSONOSV GHSA-8796-gc9j-63rvJSONOSV GHSA-cg57-p69r-3m7pJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.4 | AV:L/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | matrix-react-sdk_project | matrix-react-sdkcpe:2.3:a:matrix-react-sdk_project:matrix-react-sdk:*:*:*:*:*:node.js:*:* |
< 3.21.0 | 3.21.0 |
| OSV | npm | matrix-react-sdk | < 3.21.0 | 3.21.0 |
References
- https://github.com/matrix-org/matrix-react-sdk/pull/5981 · Patch, Third Party Advisory, WEB
- https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-8796-gc9j-63rv · Patch, Third Party Advisory, WEB
- https://github.com/matrix-org/matrix-react-sdk · PACKAGE
- https://nvd.nist.gov/vuln/detail/CVE-2021-32622 · ADVISORY
- https://www.npmjs.com/package/matrix-react-sdk · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 17 May 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Feb 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 17 May 2021)