Security mailing lists by PureSourceCode

CVE-2024-42369

MEDIUM 5.3CVSS 3.1

matrix-js-sdk will freeze when a user sets a room with itself as a its predecessor

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.

Published
20 Aug 2024
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-674
Also known as
GHSA-vhr5-g3pm-49fm
Sources
NVDJSONOSV GHSA-vhr5-g3pm-49fmJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 4.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L
OSV GitHub CVSS 3.1 MEDIUM 4.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD matrix javascript_sdk
cpe:2.3:a:matrix:javascript_sdk:*:*:*:*:*:*:*:*
< 34.3.1 34.3.1
OSV npm matrix-js-sdk < 34.3.1 34.3.1

References

History

  • 25 Nov 2026 20:56 UTC · NVD: first stored (published 20 Aug 2024)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Aug 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.