{"id":"CVE-2021-32622","aliases":["GHSA-8796-gc9j-63rv","GHSA-cg57-p69r-3m7p"],"url":"https://o3.security/vulnerability/CVE-2021-32622","summary":"File upload local preview can run embedded scripts after user interaction","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.","published":"2021-05-17T20:15:07.527Z","modified":"2026-07-09T12:32:52.073939Z","cvss":{"score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},"epss":{"score":0.00373,"percentile":0.30503,"asOf":"2026-09-08"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"matrix-react-sdk","fixedVersion":"3.21.0"}],"fix":{"url":"https://github.com/matrix-org/matrix-react-sdk/pull/5981","label":"matrix-org/matrix-react-sdk#5981"},"references":[{"type":"FIX","url":"https://github.com/matrix-org/matrix-react-sdk/pull/5981"},{"type":"FIX","url":"https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-8796-gc9j-63rv"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T12:32:52.073939Z"}}