CVE-2025-59160

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

Published Sep 16, 2025 CVSS 4.0 · 2.7 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-29628 matrix-js-sdk has insufficient validation when considering a room to be upgraded by another
Github GHSA Github GHSA GHSA-mp7c-m3rh-r56v matrix-js-sdk has insufficient validation when considering a room to be upgraded by another
History
Type Values Removed Values Added
First Time appeared Matrix-org
Matrix-org matrix-js-sdk
Vendors & Products Matrix-org
Matrix-org matrix-js-sdk
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title matrix-js-sdk has insufficient validation when considering a room to be upgraded by another
Weaknesses CWE-345
References
Metrics cvssV4_0

{'score': 2.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 16, 2025, 6:26 PM
Reserved
Sep 9, 2025, 3:23 PM
Status
Deferred
Published
Sep 16, 2025, 5:15 PM
Modified
Jun 17, 2026, 9:45 AM