Improper file handling in matrix-react-sdk
Matrix-React-SDK is a react-based SDK for inserting a Matrix chat/voip client into a web page. Before version 3.21.0, when uploading a file, the local file preview can lead to execution of scripts embedded in the uploaded file. This can only occur after several user interactions to open the preview in a separate tab. This only impacts the local user while in the process of uploading. It cannot be exploited remotely or by other users. This vulnerability is patched in version 3.21.0.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | matrix-react-sdk | < 3.21.0 | 3.21.0 |
References
- CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L- Weakness (CWE)
CWE-74, CWE-434- Platform
- npm
- Package
matrix-react-sdk- Disclosed
- 17.05.2021
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-8796-gc9j-63rv - CC BY 4.0
OSV / GitHub Advisory Database - GHSA-cg57-p69r-3m7p - CC BY 4.0
Vulnerability history: matrix-react-sdk
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 8
- First → latest
- 03.2021 10.2024
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 4
- Medium 3
- Low 1
Disclosures per year
- 2021: 2
- 2022: 0
- 2023: 4
- 2024: 2
- 2025: 0
- 2026: 0
-
Improper file handling in matrix-react-sdk this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.