Read the docs
TI-2025-36764 Aliases CVE-2025-59160GHSA-mp7c-m3rh-r56v

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

Priority LOW 19CWE-345Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Security bypass
Confidentiality · integrity · availability
None · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-345.

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00243 15th percentileScored 2026-11-07
Fix Fixed matrix-js-sdk (matrix-org): 38.2.0matrix-js-sdk (npm): 38.2.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
matrix-orgmatrix-js-sdkbefore 38.2.038.2.0Patch availableCNA
—matrix-js-sdk (npm)before 38.2.038.2.0Patch availableGHSA-mp7c-m3rh-r56v
  • matrix-js-sdk Vendormatrix-org Affected before 38.2.0 Fixed in 38.2.0 Patch available CNA
  • matrix-js-sdk (npm) Vendor— Affected before 38.2.0 Fixed in 38.2.0 Patch available GHSA-mp7c-m3rh-r56v

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:matrix:javascript_sdk:*:*:*:*:*:*:*:*——matrix-org
  • cpe:2.3:a:matrix:javascript_sdk:*:*:*:*:*:*:*:* Versions — — ·matrix-org

Remediation

  • Fix · CNA matrix-js-sdk (matrix-org) Fixed in 38.2.0
  • Fix · GHSA-mp7c-m3rh-r56v matrix-js-sdk (npm) Fixed in 38.2.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-59160
  2. 2026-10-03 Alias added: GHSA-mp7c-m3rh-r56v

References

  • TI-2023-20035 Sydent does not verify email server certificates CVSS 3.1CRITICAL 9.3
  • TI-2026-45046 Dendrite 0.13.8 SSRF via Unauthenticated Legacy Media Download Endpoint CVSS 4.0MEDIUM 6.9
  • TI-2026-45045 Dendrite 0.13.8 Improper Authorization via POST account/3pid/delete Endpoint CVSS 4.0HIGH 7.1
  • TI-2026-45047 Dendrite 0.13.8 syncapi /context Endpoint Post-Leave State Exposure CVSS 4.0MEDIUM 5.3
  • TI-2023-15617 Synapse Outgoing federation to specific hosts can be disabled by sending malicious invites CVSS 3.1MEDIUM 5.0
  • TI-2023-20039 matrix-appservice-irc IRC command injection via admin commands containing newlines CVSS 3.1CRITICAL 9.8
See all 115 →

Sources