{"id":"CVE-2021-21320","published":"2021-03-02T02:45:16Z","modified":"2024-08-03T18:09:15Z","title":"User content sandbox can be confused into opening arbitrary documents","vendor":"matrix-org","product":"matrix-react-sdk","tier":"tail","description":{"text":"matrix-react-sdk is an npm package which is a Matrix SDK for React Javascript. In matrix-react-sdk before version 3.15.0, the user content sandbox can be abused to trick users into opening unexpected documents. The content is opened with a `blob` origin that cannot access Matrix user data, so messages and secrets are not at risk. This has been fixed in version 3.15.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00933,"percentile":0.59029,"provenance":"source"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"references":[{"url":"https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-52mq-6jcv-j79x","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/matrix-react-sdk/pull/5657","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/matrix-react-sdk/commit/b386f0c73b95ecbb6ea7f8f79c6ff5171a8dedd1","tags":["x_refsource_MISC"]},{"url":"https://www.npmjs.com/package/matrix-react-sdk","tags":["x_refsource_MISC"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":11.81},{"name":"CVSS severity","points":1.82}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"matrix-react-sdk","versions":["< 3.15.0"]}],"affected":[{"ecosystem":"npm","package":"matrix-react-sdk","vulnerableRanges":["<3.15.0"],"patched":["3.15.0"],"from":["GHSA-52mq-6jcv-j79x"],"provenance":"source"}],"summary":{"text":"The matrix-react-sdk npm package, a React SDK for Matrix, contains a flaw in its user content sandbox, which in versions before 3.15.0 can be abused to trick users into opening unexpected documents. An attacker needs to get a user to interact with the crafted content (user interaction is required), and the attack is network-reachable with high attack complexity and low privileges; the content opens under a blob origin that cannot reach Matrix user data, so the impact is limited to misleading document opening rather than message or secret exposure.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:46:46Z"},"euvd":{"id":"EUVD-2021-0602","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-21320","published":"2021-03-02","fixed":"3.15.0","kev":false},{"cve":"CVE-2021-32622","published":"2021-05-17","fixed":"3.21.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-2022-36060","published":"2023-03-28","fixed":"3.53.0","kev":false},{"cve":"CVE-2023-28103","published":"2023-03-28","fixed":"3.69.0","kev":false}],"package":"npm:matrix-react-sdk"}}