CVE-2025-59160CWE-345

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

Low · published September 16, 2025

CVSS v4.0
2.7
EPSS
0%
Percentile
14.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
2.7 · LOW
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
EPSS
0.00243 · 14.6th percentile
Weakness
CWE-345 · Insufficient Verification of Data Authenticity
Published
2025-09-16T16:37Z
EPSS history
Timeline
  • 16 SEP 16:37Z
    matrix-js-sdk has insufficient validation when considering a room to be upgraded by another
    cvelistv5