{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-32622","id":"CVE-2021-32622","title":"File upload local preview can run embedded scripts after user interaction","description":"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 ","descriptionLong":"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-17T19:35:11.000Z","updated":"2026-10-20T10:50:10.316189933Z","reserved":"2021-05-12T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.2,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":4.2,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.2,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"github.com"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":4.2,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub"},{"version":"2.0","score":4.4,"vector":"AV:L/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"medium","products":["matrix-org matrix-react-sdk"],"affectedProducts":[{"vendor":"matrix-org","product":"matrix-react-sdk","defaultStatus":null,"versions":[{"status":"affected","version":"< 3.21.0"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"matrix-react-sdk","purl":"pkg:npm/matrix-react-sdk","ranges":["<3.21.0"],"fixed":["3.21.0"],"advisory":"GHSA-8796-gc9j-63rv"}],"cwes":["CWE-74","CWE-434"],"aliases":["GHSA-8796-gc9j-63rv","GHSA-cg57-p69r-3m7p"],"references":[{"url":"https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-8796-gc9j-63rv","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/matrix-org/matrix-react-sdk/pull/5981","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/matrix-org/matrix-react-sdk","tags":["package"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32622","tags":["advisory"]},{"url":"https://www.npmjs.com/package/matrix-react-sdk","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00373,"epssPercentile":0.31969,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-32622","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32622","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-32622","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-8796-gc9j-63rv","ok":true,"note":"GHSA-8796-gc9j-63rv"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-cg57-p69r-3m7p","ok":true,"note":"GHSA-cg57-p69r-3m7p"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-32622","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["react"],"critical":[],"attention":null}