# CVE-2021-21320: User content sandbox can be confused into opening arbitrary documents

- Severity: Low 2.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.93%, higher than 61% of CVEs (2026-12-01)
- Published: 2021-03-02T02:45:16.000Z
- Modified: 2026-07-08T06:28:20.267Z
- Also known as: GHSA-52mq-6jcv-j79x
- Weaknesses: CWE-345
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- matrix-org matrix-react-sdk: < 3.15.0
- matrix-react-sdk (npm): before 3.15.0
- matrix-react-sdk_project matrix-react-sdk: before 3.15.0

## Every score

- GitHub_M: CVSS:3.1 2.6 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 2.6 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-52mq-6jcv-j79x> (third-party-advisory, web)
- <https://github.com/matrix-org/matrix-react-sdk/pull/5657> (patch, third-party-advisory, web)
- <https://github.com/matrix-org/matrix-react-sdk/commit/b386f0c73b95ecbb6ea7f8f79c6ff5171a8dedd1> (patch, third-party-advisory, web)
- <https://www.npmjs.com/package/matrix-react-sdk> (product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21320> (advisory)

## Sources

- CVE List: [CVE-2021-21320](https://www.cve.org/CVERecord?id=CVE-2021-21320), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-52mq-6jcv-j79x](https://github.com/advisories/GHSA-52mq-6jcv-j79x), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-21320](https://nvd.nist.gov/vuln/detail/CVE-2021-21320), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21320 · Whole record: https://cve.day/CVE-2021-21320.json · Rebuilt by cve.day 2026-11-25T22:58:00.109Z
