2.6low
User content sandbox can be confused into opening arbitrary documents
- Severity
- 2.6low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.93% (higher than 61% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-52mq-6jcv-j79x
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| matrix-org matrix-react-sdk | < 3.15.0 | CVE List |
| matrix-react-sdk (npm) | before 3.15.0 | GitHub Advisory Database |
| matrix-react-sdk_project matrix-react-sdk | before 3.15.0 | NVD |
All scores
| GitHub_M | 2.6low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N |
| GitHub | 2.6low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
The 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.
Patches
This has been fixed by https://github.com/matrix-org/matrix-react-sdk/pull/5657, which is included in 3.15.0.
Workarounds
There are no known workarounds.
NVD (es)
matrix-react-sdk es un paquete npm que es un Matrix SDK para React Javascript. 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. 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. Esto ha sido corregido en la versión 3.15.0
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21320 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-52mq-6jcv-j79x changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-21320 changed 2026-06-17 | Public domain |