CVE-2021-32622:
Improper file handling in matrix-react-sdk
4.2
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.395%
CWE
Published
2/10/2022
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
matrix-react-sdk | npm | < 3.21.0 | 3.21.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability centers on unsafe local file preview handling. While exact patch details aren't available, the advisory indicates previews in separate tabs could execute scripts. This suggests functions handling: 1) Preview window creation (using window.open()
with blob: or about:blank targets) 2) File content rendering in new windows 3) Unsafe HTML injection patterns. The medium confidence reflects educated guesses based on React
file preview patterns and CWE-74/434
characteristics, though without seeing the actual #5981 patch code.