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

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
  • 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. Learn more about Dependency Scanning →

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 Wed, 14 May 2025 12:15:03 +0000.