{"id":"CVE-2021-21320","aliases":["CVE-2021-21320","GHSA-52mq-6jcv-j79x"],"related":[],"kind":"vulnerability","state":"published","title":"User content sandbox can be confused into opening arbitrary documents","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe user content sandbox can be abused to trick users into opening unexpected documents after several user interactions. The content can be opened with a `blob` origin from the Matrix client, so it is possible for a malicious document to access user messages and secrets.\n\n### Patches\n\nThis has been fixed by https://github.com/matrix-org/matrix-react-sdk/pull/5657, which is included in 3.15.0.\n\n### Workarounds\n\nThere are no known workarounds.","format":"markdown","source":"ghsa"},{"lang":"es","text":"matrix-react-sdk es un paquete npm que es un Matrix SDK para React Javascript.&#xa0;En matrix-react-sdk anterior a la versión 3.15.0, el sandbox del contenido del usuario puede ser abusado para engañar a los usuarios para que abran documentos inesperados.&#xa0;El contenido es abierto con un origen \"blob\" que no puede acceder a los datos del usuario de Matrix, por lo que los mensajes y secretos no están en riesgo.&#xa0;Esto ha sido corregido en la versión 3.15.0","source":"nvd"}],"published":"2021-03-02T02:45:16.000Z","modified":"2026-07-08T06:28:20.267Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N","score":2.6,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N","score":2.6,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N","score":2.6,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-345"],"affected":[{"ranges":[{"version":"< 3.15.0","status":"affected"}],"vendor":"matrix-org","product":"matrix-react-sdk","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.15.0"}],"ecosystem":"npm","package":"matrix-react-sdk","purl":"pkg:npm/matrix-react-sdk","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.15.0"}],"vendor":"matrix-react-sdk_project","product":"matrix-react-sdk","cpe":"cpe:2.3:a:matrix-react-sdk_project:matrix-react-sdk:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-52mq-6jcv-j79x","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/matrix-org/matrix-react-sdk/pull/5657","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/matrix-org/matrix-react-sdk/commit/b386f0c73b95ecbb6ea7f8f79c6ff5171a8dedd1","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.npmjs.com/package/matrix-react-sdk","tags":["product","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21320","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21320","url":"https://www.cve.org/CVERecord?id=CVE-2021-21320","licence":"CVE Terms of Use","modified":"2024-08-03T18:09:15.273Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-52mq-6jcv-j79x","url":"https://github.com/advisories/GHSA-52mq-6jcv-j79x","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:20.267Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21320","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21320","licence":"Public domain","modified":"2026-06-17T03:35:17.443Z"}],"updatedAt":"2026-11-25T22:58:00.109Z","epss":{"score":0.00933,"percentile":0.61747,"date":"2026-12-01T12:00:22.000Z"}}