CVE-2024-50336
JSON

5.3medium

matrix-js-sdk has insufficient MXC URI validation which allows client-side path traversal

Severity
5.3medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.83% (higher than 58% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-xvg8-m4x3-w6xr

Description

matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. matrix-js-sdk before 34.11.0 is vulnerable to client-side path traversal via crafted MXC URIs. A malicious room member can trigger clients based on the matrix-js-sdk to issue arbitrary authenticated GET requests to the client's homeserver. Fixed in matrix-js-sdk 34.11.1.

Affected

Product or packageVersionsReported by
matrix-org matrix-js-sdk< 34.11.1CVE List
matrix-js-sdk (npm)before 34.11.1GitHub Advisory Database

All scores

GitHub_M5.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. matrix-js-sdk before 34.11.0 is vulnerable to client-side path traversal via crafted MXC URIs. A malicious room member can trigger clients based on the matrix-js-sdk to issue arbitrary authenticated GET requests to the client's homeserver. Fixed in matrix-js-sdk 34.11.1.

GitHub Advisory Database
Summary

matrix-js-sdk before 34.11.0 is vulnerable to client-side path traversal via crafted MXC URIs. A malicious room member can trigger clients based on the matrix-js-sdk to issue arbitrary authenticated GET requests to the client's homeserver.

Details

The Matrix specification demands homeservers to perform validation of the server-name and media-id components of MXC URIs with the intent to prevent path traversal. However, it is not mentioned that a similar check must also be performed on the client to prevent client-side path traversal. matrix-js-sdk fails to perform this validation.

Patches

Fixed in matrix-js-sdk 34.11.1.

Workarounds

None.

References
NVD (es)

matrix-js-sdk es un SDK cliente-servidor del protocolo de mensajería Matrix para JavaScript. matrix-js-sdk anterior a la versión 34.11.0 es vulnerable a client-side path traversal a través de URI MXC manipuladas. Un miembro de sala malintencionado puede hacer que los clientes basados en matrix-js-sdk emitan solicitudes GET autenticadas arbitrarias al servidor principal del cliente. Se solucionó en matrix-js-sdk 34.11.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-50336 changed 2025-11-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-xvg8-m4x3-w6xr changed 2025-11-04CC-BY-4.0
NVDCVE-2024-50336 changed 2026-06-17Public domain