CVE-2025-59160 LOW

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

Vendor Matrix-Org
Product matrix-js-sdk
Weakness CWE-345
Published September 16, 2025
Last update September 16, 2025

CVSS base score

2.7/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality
Integrity

CVSS vector

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

September 16, 2025 CVE published
September 16, 2025 Record updated