CVE-2025-59160

Low

Description

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.

SeverityLow
CVSS2.7
Exploit probability—
ProductMatrix-js-sdk
PublishedSep 16, 2025
First seenSep 16, 2025
Weakness typeCWE-345CWE-345

How to fix

Update
  • matrix-js-sdk38.2.0 or later

Affected products

ProductAffected versionsFixed in
matrix-js-sdknpmv < 38.2.038.2.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.