CVE-2025-59160
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability CVE-2025-59160 affects Matrix JavaScript SDK (matrix-js-sdk) versions before 38.2.0. The vulnerability was discovered and disclosed on September 16, 2025, impacting the Matrix Client-Server SDK for JavaScript and TypeScript (GitHub Advisory, NVD).

Technical details

The vulnerability stems from insufficient validation of room predecessor links in the MatrixClient::getJoinedRooms function. The CVSS v4.0 score is 2.7 (LOW) with the 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. The weakness is categorized as CWE-345 (Insufficient Verification of Data Authenticity) (NVD).

Impact

The vulnerability allows a remote attacker to attempt to replace a tombstoned room with an unrelated attacker-supplied room, potentially affecting the integrity of room management in Matrix applications (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 38.2.0 of matrix-js-sdk. Users are recommended to upgrade to this version. As a workaround, users can avoid using MatrixClient::getJoinedRooms and instead use getRooms() while filtering upgraded rooms separately (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59145HIGH8.8
  • JavaScriptJavaScript
  • color-name
NoYesSep 15, 2025
CVE-2025-59331HIGH8.8
  • JavaScriptJavaScript
  • is-arrayish
NoYesSep 15, 2025
CVE-2025-59333HIGH8.1
  • JavaScriptJavaScript
  • @executeautomation/database-server
NoNoSep 16, 2025
CVE-2025-9862MEDIUM6.1
  • JavaScriptJavaScript
  • ghost
NoYesSep 15, 2025
CVE-2025-59160LOW2.7
  • JavaScriptJavaScript
  • node-matrix-js-sdk
NoYesSep 16, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management