{"id":"GHSA-8796-gc9j-63rv","revision":"51ca8e3693e649a6a9e83f50b708d60c","records":[{"revision":"51ca8e3693e649a6a9e83f50b708d60c","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-8796-gc9j-63rv","aliases":["CVE-2021-32622","GHSA-cg57-p69r-3m7p"],"title":"File upload local preview can run embedded scripts after user interaction","description":"### 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.","state":0,"publishedAt":"2021-05-17T20:51:16+00:00","modifiedAt":"2026-07-08T06:49:32.4951711+00:00","affected":[{"ecosystem":"npm","name":"matrix-react-sdk","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.21.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-8796-gc9j-63rv","https://github.com/matrix-org/matrix-react-sdk"],"sourceUrl":"https://github.com/advisories/GHSA-8796-gc9j-63rv","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-8796-gc9j-63rv","identifiers":["GHSA-8796-gc9j-63rv","CVE-2021-32622","GHSA-cg57-p69r-3m7p"]},"retained":false,"historicalAffected":[]}],"coverage":[]}