Insufficient Validation Vulnerability in Matrix JavaScript SDK by Matrix
CVE-2025-59160
2.7LOW
What is CVE-2025-59160?
The Matrix JavaScript SDK is susceptible to a security flaw that allows a remote attacker to manipulate room links within the client. Specifically, versions prior to 38.2.0 fail to adequately validate predecessor links in the MatrixClient::getJoinedRooms function. This oversight enables an attacker to attempt to replace a previously tombstoned room with an unrelated room that they control. To mitigate this vulnerability, users are encouraged to update to version 38.2.0 or later. As an interim solution, using the getRooms() function and manually filtering the upgraded rooms is recommended.
Affected Version(s)
matrix-js-sdk < 38.2.0