{"id":"CVE-2025-59160","published":"2025-09-16T16:37:54Z","modified":"2025-09-16T18:26:33Z","title":"matrix-js-sdk has insufficient validation when considering a room to be upgraded by another","vendor":"matrix-org","product":"matrix-js-sdk","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.7,"severity":"LOW","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0036,"percentile":0.2208,"provenance":"source"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"references":[{"url":"https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-mp7c-m3rh-r56v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/matrix-js-sdk/commit/43c72d5bf5e2d0a26b3b4f71092e7cb39d4137c4","tags":["x_refsource_MISC"]}],"priority":{"score":6.3,"factors":[{"name":"EPSS percentile","points":4.42},{"name":"CVSS severity","points":1.89}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"matrix-js-sdk","versions":["< 38.2.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-09-16T17:29:36.994318Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"matrix-js-sdk","vulnerableRanges":["<38.2.0"],"patched":["38.2.0"],"from":["GHSA-mp7c-m3rh-r56v"],"provenance":"source"}],"summary":{"text":"The matrix-js-sdk JavaScript/TypeScript Matrix client SDK, before 38.2.0, has insufficient validation of room predecessor links in MatrixClient::getJoinedRooms. A remote attacker with no privileges and no user interaction over the network can attempt to replace a tombstoned (upgraded) room with an unrelated attacker-supplied room, with the flaw requiring only that the affected client code path be used.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:33Z"},"euvd":{"id":"EUVD-2025-29628","exploited":false,"provenance":"source"}}