CVE-2025-59160
published low CVSS 4.0 · 2.7matrix-js-sdk has insufficient validation when considering a room to be upgraded by another
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| matrix-org | — | matrix-js-sdk< 38.2.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.7 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| matrix-org | matrix-js-sdk | < 38.2.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-345 CWE-345: Insufficient Verification of Data Authenticity
References
2Provider assertions
2GitHub_M · cna
matrix-js-sdk has insufficient validation when considering a room to be upgraded by another
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- c1184a3bb33b556656aa48d156f67c202d6e0ab0c3fcb8f259aec75fd716fde1
- Ingested
- 23 Sep 2026, 08:54:07 UTC
- Source record
- Official CVE record