CVE-2021-21320 json
User content sandbox can be confused into opening arbitrary documents
published 2021-03-02 5 y ago modified 2026-07-08 4 mo ago also GHSA-52mq-6jcv-j79x , EUVD-2021-0602
- cvss
- 2.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 60%
- public exploits
- 0
- none known
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.
Patch / fix
- npm matrix-react-sdk 3.15.0
- matrix-react-sdk_project matrix-react-sdk 3.15.0
Exploit prediction
0.92% chance of exploitation in the next 30 days, higher than 60% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 2.6 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N |
| NVD | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 2.6 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | matrix-react-sdk | <3.15.0 |
3.15.0 |
Affected products
- matrix-org matrix-react-sdk
Classification
- Weakness
-
- CWE-345 Insufficient Verification of Data Authenticity
References
-
github.com
/matrix-org/matrix-react-sdk/pull/5657
web, patch, third-party-advisory
-
github.com
/matrix-org/matrix-react-sdk/commit/b386f0c73b95ecbb6ea7f8f79c6ff5171a8dedd1
web, patch, third-party-advisory
-
github.com
/matrix-org/matrix-react-sdk/security/advisories/GHSA-52mq-6jcv-j79x
web, third-party-advisory
-
npmjs.com
/package/matrix-react-sdk
web, product, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-21320
advisory
Sources
- CVE List CVE-2021-21320
- GitHub Advisory GHSA-52mq-6jcv-j79x
- NVD CVE-2021-21320
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.