Live threats

All CVEs / Matrix

CVE-2024-42369Matrix Javascript Sdk

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
0.7%
probability of exploitation in 30 days · percentile 47
Auth required
No
Published
Aug 20, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-674
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

What happens

matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. A malicious homeserver can craft a room or room structure such that the predecessors form a cycle. The matrix-js-sdk's getRoomUpgradeHistory function will infinitely recurse in this case, causing the code to hang. This method is public but also called by the 'leaveRoomChain()' method, so leaving a room will also trigger the bug. This was patched in matrix-js-sdk 34.3.1.

Original NVD text.

What to do

  1. Apply the vendor's security update for Javascript Sdk.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm matrix-js-sdk < 34.3.1 34.3.1 npm install matrix-js-sdk@34.3.1

Per OSV / GitHub Advisories (GHSA-vhr5-g3pm-49fm). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
matrixjavascript_sdk< 34.3.1

Official sources

References

Links published by the sources. Open them with care.