{"cve":"CVE-2021-32622","nvd":{"published":"2021-05-17T20:15:07.527","modified":"2026-06-17T03:53:17.460","status":"Modified","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 exploited remotely or by other users. This vulnerability is patched in version 3.21.0.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-434","CWE-74"],"references":["https://github.com/matrix-org/matrix-react-sdk/pull/5981","https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-8796-gc9j-63rv","https://github.com/matrix-org/matrix-react-sdk/pull/5981","https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-8796-gc9j-63rv"],"products":["matrix-react-sdk_project:matrix-react-sdk"],"source":"nvd","synced_at":"2026-10-19T21:18:09.669877188+00:00"},"epss":{"cve":"CVE-2021-32622","score":0.00373,"percentile":0.31305,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8796-gc9j-63rv","url":"https://osv.dev/vulnerability/GHSA-8796-gc9j-63rv","summary":"File upload local preview can run embedded scripts after user interaction","modified":"2026-07-08T06:49:32.495171089Z","packages":[{"ecosystem":"npm","name":"matrix-react-sdk","purl":"pkg:npm/matrix-react-sdk","ranges":["<3.21.0"],"fixed":["3.21.0"]}]},{"id":"GHSA-cg57-p69r-3m7p","url":"https://osv.dev/vulnerability/GHSA-cg57-p69r-3m7p","summary":"Improper file handling in matrix-react-sdk","modified":"2026-07-08T06:49:32.495171089Z","packages":[{"ecosystem":"npm","name":"matrix-react-sdk","purl":"pkg:npm/matrix-react-sdk","ranges":["<3.21.0"],"fixed":["3.21.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}