CVE-2021-21320
JSON

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 packageVersionsReported by
matrix-org matrix-react-sdk< 3.15.0CVE List
matrix-react-sdk (npm)before 3.15.0GitHub Advisory Database
matrix-react-sdk_project matrix-react-sdkbefore 3.15.0NVD

All scores

GitHub_M2.6low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N
GitHub2.6low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N
NVD4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
NVD4.3medium CVSS:2.0AV: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.&#xa0;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.&#xa0;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.&#xa0;Esto ha sido corregido en la versión 3.15.0

References

Sources

SourceRecordLicence
CVE ListCVE-2021-21320 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-52mq-6jcv-j79x changed 2026-07-08CC-BY-4.0
NVDCVE-2021-21320 changed 2026-06-17Public domain