{"cve":"CVE-2025-59160","nvd":{"published":"2025-09-16T17:15:41.590","modified":"2026-06-17T09:45:38.993","status":"Deferred","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.","cvss_v4":{"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","score":2.7},"cvss_v3":null,"cwes":["CWE-345"],"references":["https://github.com/matrix-org/matrix-js-sdk/commit/43c72d5bf5e2d0a26b3b4f71092e7cb39d4137c4","https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-mp7c-m3rh-r56v"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:10:08.713834912+00:00"},"epss":{"cve":"CVE-2025-59160","score":0.00243,"percentile":0.15559,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-mp7c-m3rh-r56v","url":"https://osv.dev/vulnerability/GHSA-mp7c-m3rh-r56v","summary":"matrix-js-sdk has insufficient validation when considering a room to be upgraded by another","modified":"2025-09-22T22:59:23Z","packages":[{"ecosystem":"npm","name":"matrix-js-sdk","purl":"pkg:npm/matrix-js-sdk","ranges":["<38.2.0"],"fixed":["38.2.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}