CVE-2021-21320
MEDIUM 4.3CVSS 3.1User content sandbox can be confused into opening arbitrary documents
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.
- Published
- 2 Mar 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-345
- Also known as
- GHSA-52mq-6jcv-j79x
- Sources
- NVDJSONOSV GHSA-52mq-6jcv-j79xJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 2.6 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 2.6 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | matrix-react-sdk_project | matrix-react-sdkcpe:2.3:a:matrix-react-sdk_project:matrix-react-sdk:*:*:*:*:*:node.js:*:* |
< 3.15.0 | 3.15.0 |
| OSV | npm | matrix-react-sdk | < 3.15.0 | 3.15.0 |
References
- https://github.com/matrix-org/matrix-react-sdk/commit/b386f0c73b95ecbb6ea7f8f79c6ff5171a8dedd1 · Patch, 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/security/advisories/GHSA-52mq-6jcv-j79x · 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
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 2 Mar 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 3 Mar 2021)