A room with itself as a its predecessor will freeze matrix-js-sdk
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-42369
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 14:56 UTC · Revision 1
Source evidence
A room with itself as a its predecessor will freeze matrix-js-sdk
core-osv · Original sourcePublished 20 Aug 2024, 14:37 UTC
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.
osv:CVE-2024-42369
Complete source record
{
"id": "949bcfca689140c08be7095d6d77f9d5646be185a3f52fee372a5397648b4271",
"url": "https://osv.dev/vulnerability/CVE-2024-42369",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "A room with itself as a its predecessor will freeze matrix-js-sdk",
"summary": "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.",
"evidence": "osv:CVE-2024-42369",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2024-42369",
"aliases": [
"CVE-2024-42369",
"GHSA-vhr5-g3pm-49fm"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/matrix-org/matrix-js-sdk",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "340bbe1a8fae05a514ac133e6e9b549326854957"
},
{
"fixed": "a0efed8b881b3db6c9f2c71d6a6e74c2828978c6"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:matrix:javascript_sdk:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "34.3.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "a0efed8b881b3db6c9f2c71d6a6e74c2828978c6"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v34.3.0",
"v34.3.0-rc.1",
"v34.3.0-rc.0",
"v34.2.0",
"v31.2.0-rc.0",
"v30.2.0-rc.0",
"v30.1.0-rc.0",
"v30.1.0-rc.1",
"v26.2.0-no-media-devices-hotfix",
"no-media-devices-release",
"v26.1.0-patch.1",
"v8.1.0",
"v8.1.0-rc.1",
"v8.0.0",
"v7.1.0",
"v7.1.0-rc.1",
"v5.0.1",
"v2.4.1",
"v2.0.1",
"v2.0.1-rc.2",
"v2.0.1-rc.1",
"v1.0.0",
"v1.0.0-rc.2",
"v1.0.0-rc.1",
"v0.11.0",
"v0.11.0-rc.1",
"v0.10.7",
"v0.10.7-rc.1",
"v0.10.5",
"v0.10.5-rc.1",
"v0.10.3",
"v0.10.2",
"v0.10.3-rc.1",
"v0.10.2-rc.1",
"v0.8.3",
"v0.8.3-rc.1",
"v0.8.2",
"v0.8.1",
"v0.8.1-rc.1",
"v0.8.0",
"v0.7.10",
"v0.7.9",
"v0.7.4",
"v0.7.4-rc.1",
"v0.7.2",
"v0.7.1-rc.1",
"v0.6.4",
"v0.6.4-rc.2",
"v0.6.2",
"v0.6.1",
"v0.6.0-rc2",
"v0.6.0-rc1",
"v0.5.6",
"v0.5.5",
"v0.5.4",
"v0.5.3",
"v0.5.2",
"v0.5.1",
"v0.5.0",
"v0.4.2",
"v0.4.1",
"v0.2.2",
"v0.2.1",
"v0.2.0",
"v0.1.1",
"v0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42369.json"
}
}
],
"modified": "2026-10-28T02:30:29.703177225Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42369.json",
"https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-vhr5-g3pm-49fm",
"https://nvd.nist.gov/vuln/detail/CVE-2024-42369",
"https://github.com/matrix-org/matrix-js-sdk/commit/a0efed8b881b3db6c9f2c71d6a6e74c2828978c6"
],
"provider_metadata": {
"cwe_ids": [
"CWE-674"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42369.json"
}
},
"related_cves": [
{
"value": "CVE-2024-42369",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496578,
"published_at": "2024-08-20T14:37:19.226+00:00"
}