Vulnerability · Published May 17, 2021 · Assigned by GitHub_M
CVE-2021-32622File upload local preview can run embedded scripts after user interaction
Medium 4.2
In plain English
A medium-severity injection in matrix-react-sdk from matrix-org. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 31% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | matrix-react-sdk | 3.21.0 | GHSA-8796-gc9j-63rv |
| npm | matrix-react-sdk | 3.21.0 | GHSA-cg57-p69r-3m7p |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| matrix-org | matrix-react-sdk | < 3.21.0 |
Weakness: CWE-74 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
References
- https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-8796-gc9j-63rv x_refsource_CONFIRM
- https://github.com/matrix-org/matrix-react-sdk/pull/5981 x_refsource_MISC