Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. matrix-js-sdk
  4. ›
  5. CVE-2024-50336

CVE-2024-50336: matrix-js-sdk has insufficient MXC URI validation which allows client-side path traversal

November 12, 2024 (updated November 4, 2025)

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.

References

  • github.com/advisories/GHSA-xvg8-m4x3-w6xr
  • github.com/matrix-org/matrix-js-sdk
  • github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-xvg8-m4x3-w6xr
  • lists.debian.org/debian-lts-announce/2025/01/msg00004.html
  • nvd.nist.gov/vuln/detail/CVE-2024-50336
  • spec.matrix.org/v1.12/client-server-api/

Code Behaviors & Features

Detect and mitigate CVE-2024-50336 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 34.11.1

Fixed versions

  • 34.11.1

Solution

Upgrade to version 34.11.1 or above.

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/matrix-js-sdk/CVE-2024-50336.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:04 +0000.