CVE-2021-32622: File upload local preview can run embedded scripts after user interaction

Published May 17, 2021
·
Updated

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

1 affected component
Matrix-react-sdk Project Matrix-react-sdk Node.js<3.21.0

Event History

May 17, 2021
CVE Published
via MITRE·07:35 PM
Data Sourced
via MITRE·07:35 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-32622?

CVE-2021-32622 has a medium severity due to the potential for script execution from uploaded files.

2

How do I fix CVE-2021-32622?

To fix CVE-2021-32622, upgrade Matrix-React-SDK to version 3.21.0 or later.

3

What causes CVE-2021-32622 vulnerability?

CVE-2021-32622 is caused by the local file preview feature that allows execution of scripts from uploaded files.

4

Who is affected by CVE-2021-32622?

Users of Matrix-React-SDK versions before 3.21.0 are affected by CVE-2021-32622.

5

What actions should be taken to mitigate CVE-2021-32622?

To mitigate CVE-2021-32622, implement file upload restrictions or upgrade to a secure version of Matrix-React-SDK.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203