🛡️ CVE-2024-50336 — matrix-js-sdk

⚪ Unknown ✅ No Known Exploit CWE-22 NVD
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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

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](https://spec.matrix.org/v1.12/client-server-api/#security-considerations-5) 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

  • https://spec.matrix.org/v1.12/client-server-api/#security-considerations-5
  • https://blog.doyensec.com/2024/07/02/cspt2csrf.html

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. Rated impact: confidentiality none, integrity low, availability none.

Weakness class

CVE-2024-50336 is classified as CWE-22: Path Traversal. A file path built from user input is not confined to the intended directory, letting an attacker reach files elsewhere on the filesystem.

Affected software

CVE-2024-50336 is recorded against 2 packages.

  • matrix-js-sdk
  • unknown

Timeline and source

Published on 12 November 2024 and last revised on 4 November 2025. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Package)
lists.debian.org (Web)
spec.matrix.org (Web)

CVE-2024-50336 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Unknown
CVSS Score N/A
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
CWE CWE-22
Public Exploit ✅ No
Source NVD
Published 2024-11-12
Updated 2026-08-20
Modified 2025-11-04
Fix URL N/A

Affected Packages

Software From version Fixed in
matrix-js-sdk
unknown

Similar Threats

Free Vulnerability Check

Is your site affected by CVE-2024-50336?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2024-50336 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2024