CVE-2025-59160

matrix-js-sdk has insufficient validation when considering a room to be upgraded by another

LOW
2.7
CVSS Score
Published: September 16, 2025 at 04:37 PM UTC
Updated: June 17, 2026 at 09:45 AM UTC
1 product affected across 1 vendorJavaScript SDK

Using matrix-js-sdk by matrix-org?

Get instant alerts when new vulnerabilities affect matrix-js-sdk - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
LOW2.7
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 38.2.0
Affected range stops below 38.2.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

2.7LOWGitHub_M
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-345

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card