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

- Priority: **Routine**
- Reason: Not severe (CVSS 2.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-03-02 · Modified: 2024-08-03
- Aliases: GHSA-52mq-6jcv-j79x
- Record: https://cvemate.com/vulnerability/CVE-2021-21320 · JSON: https://cvemate.com/vulnerability/CVE-2021-21320/json

## 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.
```

## Signals

- CVSS: 4.3 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- EPSS: 0.933%, percentile 61.924%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- matrix-org matrix-react-sdk: \< 3.15.0
- matrix-react-sdk\_project matrix-react-sdk: \< 3.15.0
- Npm matrix-react-sdk (Npm): \< 3.15.0

## References

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

---

Data as of 2026-12-05T06:11:06.835Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
