matrix-js-sdk
Affected
- introduced
0, fixed38.2.0(semver)
Fixed versions
38.2.0
Fix
- Fixed version
38.2.0npm install [email protected]
Advisory
Also known as: CVE-2025-59160
matrix-js-sdk has insufficient validation when considering a room to be upgraded by another
Impact
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.
Patches
The issue has been patched and users should upgrade to 38.2.0.
Workarounds
Avoid using MatrixClient::getJoinedRooms in favour of getRooms() and filtering upgraded rooms separately.
Medium Basis: The source's own band: MODERATE
0, fixed 38.2.0 (semver)38.2.0
38.2.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0