CVE-2024-42369
MEDIUM 5.3CVSS 3.1matrix-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
| Source | Scored by | Version | Score | Vector / 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | matrix | javascript_sdkcpe:2.3:a:matrix:javascript_sdk:*:*:*:*:*:*:*:* |
< 34.3.1 | 34.3.1 |
| OSV | npm | matrix-js-sdk | < 34.3.1 | 34.3.1 |
References
- https://github.com/matrix-org/matrix-js-sdk/commit/a0efed8b881b3db6c9f2c71d6a6e74c2828978c6 · Patch, WEB
- https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-vhr5-g3pm-49fm · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-42369 · ADVISORY
- https://github.com/matrix-org/matrix-js-sdk · PACKAGE
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)