{"id":"CVE-2021-32622","published":"2021-05-17T19:35:11Z","modified":"2024-08-03T23:25:30Z","title":"File upload local preview can run embedded scripts after user interaction","vendor":"matrix-org","product":"matrix-react-sdk","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00373,"percentile":0.3118,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-8796-gc9j-63rv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/matrix-react-sdk/pull/5981","tags":["x_refsource_MISC"]}],"priority":{"score":9.2,"factors":[{"name":"EPSS percentile","points":6.24},{"name":"CVSS severity","points":2.94}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"matrix-react-sdk","versions":["< 3.21.0"]}],"affected":[{"ecosystem":"npm","package":"matrix-react-sdk","vulnerableRanges":["<3.21.0"],"patched":["3.21.0"],"from":["GHSA-cg57-p69r-3m7p"],"provenance":"source"}],"euvd":{"id":"EUVD-2022-0961","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-21320","published":"2021-03-02","fixed":"3.15.0","kev":false,"link":{"from":"CVE-2021-21320","to":"CVE-2021-32622","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:matrix-react-sdk","fromFixed":"3.15.0","toFixed":"3.21.0","daysApart":76}]}},{"cve":"CVE-2021-32622","published":"2021-05-17","fixed":"3.21.0","kev":false},{"cve":"CVE-2022-36060","published":"2023-03-28","fixed":"3.53.0","kev":false,"link":{"from":"CVE-2021-32622","to":"CVE-2022-36060","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:matrix-react-sdk","fromFixed":"3.21.0","toFixed":"3.53.0","daysApart":680}]}},{"cve":"CVE-2023-28103","published":"2023-03-28","fixed":"3.69.0","kev":false},{"cve":"CVE-2023-30609","published":"2023-04-25","fixed":"3.71.0","kev":false}],"package":"npm:matrix-react-sdk"}}