Skip to content

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

LowCVSS 2.7 EPSS 0.24%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

5 packages: 1 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
debian/node-matrix-js-sdk(Debian 11) = 9.3.0+~cs9.9.16-2; = 9.7.0~~rc1+~cs9.9.16-1; = 9.7.0~~rc1+~cs9.9.16-2; = 9.11.0+~cs9.9.16-1 +2 more No fix listed No fix yet
ubuntu/node-matrix-js-sdk(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/node-matrix-js-sdk(Ubuntu 24.04) All versions No fix listed No fix yet
npm matrix-js-sdk(npm) < 38.2.0 38.2.0 Fixed
matrix-org matrix-js-sdk = < 38.2.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/node-matrix-js-sdk(Debian:11) All versions No fix listed
debian/node-matrix-js-sdk(Debian:11) = 9.11.0+~cs9.9.16-1 No fix listed
debian/node-matrix-js-sdk(Debian:11) = 9.11.0+~cs9.9.16-2 No fix listed
debian/node-matrix-js-sdk(Debian:11) = 9.3.0+~cs9.9.16-2 No fix listed
debian/node-matrix-js-sdk(Debian:11) = 9.7.0~~rc1+~cs9.9.16-1 No fix listed
debian/node-matrix-js-sdk(Debian:11) = 9.7.0~~rc1+~cs9.9.16-2 No fix listed
npm matrix-js-sdk(npm) < 38.2.0 38.2.0
matrix-org matrix-js-sdk = < 38.2.0 No fix listed
ubuntu/node-matrix-js-sdk(Ubuntu:22.04) All versions No fix listed
ubuntu/node-matrix-js-sdk(Ubuntu:24.04) All versions No fix listed

References