# CVE-2024-42369: A room with itself as a its predecessor will freeze matrix-js-sdk

- Priority: **Routine**
- Reason: Not severe (CVSS 4.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-08-20 · Modified: 2024-09-03
- Aliases: UBUNTU-CVE-2024-42369, DEBIAN-CVE-2024-42369, GHSA-vhr5-g3pm-49fm, openSUSE-SU-2024:14288-1, openSUSE-SU-2024:14289-1
- Record: https://cvemate.com/vulnerability/CVE-2024-42369 · JSON: https://cvemate.com/vulnerability/CVE-2024-42369/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.483%, percentile 43.244%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian node-matrix-js-sdk (Debian): All versions (No fix recorded)
- ubuntu node-matrix-js-sdk (Ubuntu): All versions (No fix recorded)
- matrix-org matrix-js-sdk: \< 34.3.1
- matrix javascript\_sdk: \< 34.3.1
- Npm matrix-js-sdk (Npm): \< 34.3.1
- opensuse element-desktop&distro=openSUSE Tumbleweed (openSUSE): \< 1.11.75-1.1
- opensuse element-web&distro=openSUSE Tumbleweed (openSUSE): \< 1.11.75-1.1

## References

- <https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-vhr5-g3pm-49fm>
- <https://github.com/matrix-org/matrix-js-sdk/commit/a0efed8b881b3db6c9f2c71d6a6e74c2828978c6>
- <https://ubuntu.com/security/CVE-2024-42369>
- <https://www.cve.org/CVERecord?id=CVE-2024-42369>
- <https://security-tracker.debian.org/tracker/CVE-2024-42369>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-42369>
- <https://github.com/matrix-org/matrix-js-sdk>
- <https://www.suse.com/security/cve/CVE-2024-42369>

---

Data as of 2026-12-05T04:51:07.805Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
