Security mailing lists by PureSourceCode

CVE-2021-32622

HIGH 7.8CVSS 3.1

File upload local preview can run embedded scripts after user interaction

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.

Published
17 May 2021
Last modified
8 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-434CWE-74
Also known as
GHSA-8796-gc9j-63rvGHSA-cg57-p69r-3m7p
Sources
NVDJSONOSV GHSA-8796-gc9j-63rvJSONOSV GHSA-cg57-p69r-3m7pJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 4.2 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
OSV GitHub CVSS 3.1 MEDIUM 4.2 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.4 AV:L/AC:M/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD matrix-react-sdk_project matrix-react-sdk
cpe:2.3:a:matrix-react-sdk_project:matrix-react-sdk:*:*:*:*:*:node.js:*:*
< 3.21.0 3.21.0
OSV npm matrix-react-sdk < 3.21.0 3.21.0

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 17 May 2021)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Feb 2022)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 17 May 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.