Input validation error in Matrix Javascript SDK - CVE-2025-59160
Published: September 16, 2025 / Updated: November 6, 2026
Vulnerability details
The vulnerability allows a remote attacker to attempt to replace a tombstoned Matrix room with an unrelated attacker-supplied room.
The vulnerability exists due to insufficient validation of room predecessor links in the Matrix JavaScript SDK when applications use MatrixClient::getJoinedRooms to identify joined rooms. A remote attacker can exploit these checks to present an unrelated room as a potential replacement for a tombstoned room.