CVE-2025-59160 json
matrix-js-sdk has insufficient validation when considering a room to be upgraded by another
published 2025-09-16 13 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-29628 , GHSA-mp7c-m3rh-r56v
- cvss
- 2.7
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 15%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm matrix-js-sdk 38.2.0
- matrix javascript_sdk 38.2.0
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 13 mo ago
Exploit prediction
0.24% chance of exploitation in the next 30 days, higher than 15% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 2.7 | 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 |
| CNA | 4.0 | 2.7 | 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 |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | matrix-js-sdk | <38.2.0 |
38.2.0 |
Affected products
- matrix-org matrix-js-sdk
Classification
References
-
github.com
/matrix-org/matrix-js-sdk/commit/43c72d5bf5e2d0a26b3b4f71092e7cb39d4137c4
web
-
github.com
/matrix-org/matrix-js-sdk/security/advisories/GHSA-mp7c-m3rh-r56v
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-59160
advisory
-
github.com
/matrix-org/matrix-js-sdk
package
-
github.com
/matrix-org/matrix-js-sdk/releases/tag/v38.2.0
web
-
npmjs.com
/package/matrix-js-sdk/v/38.2.0
web
Sources
- CVE List CVE-2025-59160
- GitHub Advisory GHSA-mp7c-m3rh-r56v
- NVD CVE-2025-59160
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.