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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- security-tracker.debian.org vendor-advisory
- https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-mp7c-m3rh-r56v vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/matrix-org/matrix-js-sdk/commit/43c72d5bf5e2d0a26b3b4f71092e7cb39d4137c4 patch
- github.com
- www.npmjs.com
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- github.com product