Skip to content
OpenAdvisories
Low · 2.7 CVE-2025-59160 EUVD-2025-29628GHSA-mp7c-m3rh-r56v

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

Published Sep 16, 2025 · Updated Sep 16, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
matrix-org matrix-js-sdk < 38.2.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 node-matrix-js-sdk No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS node-matrix-js-sdk No fix yet —
Ubuntu 22.04 LTS node-matrix-js-sdk No fix yet —
Ubuntu 20.04 LTS node-matrix-js-sdk No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm matrix-js-sdk < 38.2.0 38.2.0 GHSA-mp7c-m3rh-r56v

References