Missing Authorization Affecting matrix-js-sdk package, versions <38.2.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Missing Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-MATRIXJSSDK-12818389
  • published18 Sept 2025
  • disclosed16 Sept 2025
  • creditUnknown

Introduced: 16 Sep 2025

NewCVE-2025-59160  (opens in a new tab)
CWE-862  (opens in a new tab)

How to fix?

Upgrade matrix-js-sdk to version 38.2.0 or higher.

Overview

matrix-js-sdk is a Matrix Client-Server SDK for Javascript

Affected versions of this package are vulnerable to Missing Authorization via insufficient validation of room predecessor links in the getJoinedRooms function. An attacker can cause a user to join an attacker-controlled room by supplying a malicious predecessor link.

Workarounds

Avoid using getJoinedRooms in favour of getRooms() and filtering upgraded rooms separately.

References

CVSS Base Scores

version 4.0
version 3.1