{"schemaVersion":3,"id":"CVE-2025-59160","aliases":["UBUNTU-CVE-2025-59160","DEBIAN-CVE-2025-59160","GHSA-mp7c-m3rh-r56v"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-09-16T16:37:54.185Z","modified":"2025-09-16T18:26:33.217Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":2.7,"severity":"low","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":2.7,"severity":"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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":6.9,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":6.9,"severity":"medium","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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","score":6.9,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":2.7,"severity":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00243,"percentile":0.14531,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00243},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00243,"percentile":0.14531}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00243,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00243,"percentile":0.14531}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity","description":"The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/345.html"}],"affected":[{"vendor":"debian","product":"node-matrix-js-sdk","name":"node-matrix-js-sdk","label":"node-matrix-js-sdk","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/node-matrix-js-sdk","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"node-matrix-js-sdk","name":"node-matrix-js-sdk","label":"node-matrix-js-sdk","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/node-matrix-js-sdk","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"matrix-org","product":"matrix-js-sdk","name":"matrix-js-sdk","label":"matrix-js-sdk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 38.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 38.2.0","eol":null,"hubHref":"/vendor/matrix-org/matrix-js-sdk"},{"vendor":"Npm","product":"matrix-js-sdk","name":"matrix-js-sdk","label":"matrix-js-sdk","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/matrix-js-sdk","purlType":"npm","versions":[{"text":"< 38.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 38.2.0","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-mp7c-m3rh-r56v","label":"github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-mp7c-m3rh-r56v","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","WEB"]},{"url":"https://github.com/matrix-org/matrix-js-sdk/commit/43c72d5bf5e2d0a26b3b4f71092e7cb39d4137c4","label":"github.com/matrix-org/matrix-js-sdk/commit/43c72d5bf5e2d0a26b3b4f71092e7cb39d4137c4","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB"]},{"url":"https://ubuntu.com/security/CVE-2025-59160","label":"ubuntu.com/security/CVE-2025-59160","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-59160","label":"www.cve.org/CVERecord?id=CVE-2025-59160","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-59160","label":"security-tracker.debian.org/tracker/CVE-2025-59160","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59160","label":"nvd.nist.gov/vuln/detail/CVE-2025-59160","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/matrix-org/matrix-js-sdk","label":"github.com/matrix-org/matrix-js-sdk","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/matrix-org/matrix-js-sdk/releases/tag/v38.2.0","label":"github.com/matrix-org/matrix-js-sdk/releases/tag/v38.2.0","hostname":"github.com","tags":["WEB"]},{"url":"https://www.npmjs.com/package/matrix-js-sdk/v/38.2.0","label":"www.npmjs.com/package/matrix-js-sdk/v/38.2.0","hostname":"www.npmjs.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-09-16T16:37:54.185Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-09-16T18:26:33.217Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":11,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T04:07:48.719Z","stale":false,"partial":false}}