ADVISORIES

Vulnerability

CVE-2025-59160

Matrix JavaScript SDK is a Matrix Client-Server SDK for JavaScript and TypeScript. matrix-js-sdk before 38.2.0 has insufficient validation of room predecessor links in MatrixClient::getJoinedRooms, allowing a remote attacker to attempt to replace a tombstoned room with an unrelated attacker-supplied room. The issue has been patched and users should upgrade to 38.2.0. A workaround is to avoid using MatrixClient::getJoinedRooms in favor of getRooms() and filtering upgraded rooms separately.

3 advisories report this vulnerability, across 3 ecosystems.

Low severity All Debian 1Ubuntu 1npm 1

Advisories

  • DEBIAN-CVE-2025-59160

    Matrix JavaScript SDK is a Matrix Client-Server SDK for JavaScript and TypeScript. matrix-js-sdk before 38.2.0 has insufficient validation of room predecessor links in MatrixClient::getJoinedRooms, allowing a remote…

    CVE-2025-59160 Debian Updated 24 November 2026
  • GHSA-mp7c-m3rh-r56v

    matrix-js-sdk has insufficient validation when considering a room to be upgraded by another

    Moderate CVE-2025-59160 npm Updated 22 September 2025
  • UBUNTU-CVE-2025-59160

    Matrix JavaScript SDK is a Matrix Client-Server SDK for JavaScript and TypeScript. matrix-js-sdk before 38.2.0 has insufficient validation of room predecessor links in MatrixClient::getJoinedRooms, allowing a remote…

    CVE-2025-59160 Ubuntu Updated 24 October 2025

References