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.
History

Wed, 17 Sep 2025 11:00:00 +0000

Type Values Removed Values Added
First Time appeared Matrix-org
Matrix-org matrix-js-sdk
Vendors & Products Matrix-org
Matrix-org matrix-js-sdk

Tue, 16 Sep 2025 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 16 Sep 2025 16:45:00 +0000

Type Values Removed Values Added
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.
Title matrix-js-sdk has insufficient validation when considering a room to be upgraded by another
Weaknesses CWE-345
References
Metrics cvssV4_0

{'score': 2.7, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published: 2025-09-16T16:37:54.185Z

Updated: 2025-09-16T18:26:33.217Z

Reserved: 2025-09-09T15:23:16.327Z

Link: CVE-2025-59160

cve-icon Vulnrichment

Updated: 2025-09-16T17:29:40.082Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-09-16T17:15:41.590

Modified: 2025-09-17T14:18:55.093

Link: CVE-2025-59160

cve-icon Redhat

No data.