{"id":"GHSA-8796-gc9j-63rv","summary":"File upload local preview can run embedded scripts after user interaction","details":"### Impact\n\nWhen 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.\n\n### Patches\n\nThis has been fixed by https://github.com/matrix-org/matrix-react-sdk/pull/5981, which is included in 3.21.0.\n\n### Workarounds\n\nThere are no known workarounds.","aliases":["CVE-2021-32622","GHSA-cg57-p69r-3m7p"],"modified":"2026-07-08T06:49:32.495171089Z","published":"2021-05-17T20:51:16Z","database_specific":{"cwe_ids":["CWE-74"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-05-17T16:51:38Z","nvd_published_at":null},"references":[{"type":"WEB","url":"https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-8796-gc9j-63rv"},{"type":"PACKAGE","url":"https://github.com/matrix-org/matrix-react-sdk"}],"affected":[{"package":{"name":"matrix-react-sdk","ecosystem":"npm","purl":"pkg:npm/matrix-react-sdk"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.21.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-8796-gc9j-63rv/GHSA-8796-gc9j-63rv.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L"}]}