CVE-2024-50336: matrix-js-sdk has insufficient MXC URI validation which allows client-side path traversal
5.3
CVSS Score
4.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.41405%
CWE
Published
11/12/2024
Updated
11/12/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| matrix-js-sdk | npm | < 34.11.1 | 34.11.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerable functions are likely those that handle MXC URIs. The matrix-js-sdk's failure to validate() the server-name and media-id components of these URIs is the root of the vulnerability. Functions like parseMxCUri and getHttpUriForMxc are potential candidates because they are involved in processing MXC URIs.