# CVE-2024-47080: matrix-js-sdk keys sent via \`sendSharedHistoryKeys\` vulnerable to interception by malicious homeserver

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 34.8.0 (CNA); fix release not confirmed
- Status: published
- Published: 2024-10-15 · Modified: 2024-10-15
- Aliases: UBUNTU-CVE-2024-47080, DEBIAN-CVE-2024-47080, GHSA-4jf8-g8wp-cx7c
- Record: https://cvemate.com/vulnerability/CVE-2024-47080 · JSON: https://cvemate.com/vulnerability/CVE-2024-47080/json

## Description

```text
matrix-js-sdk is the Matrix Client-Server SDK for JavaScript and TypeScript. In matrix-js-sdk versions versions 9.11.0 through 34.7.0, the method `MatrixClient.sendSharedHistoryKeys` is vulnerable to interception by malicious homeservers.  The method was introduced by MSC3061) and is commonly used to share historical message keys with newly invited users, granting them access to past messages in the room. However, it unconditionally sends these "shared" keys to all of the invited user's devices, regardless of whether the user's cryptographic identity is verified or whether the user's devices are signed by that identity. This allows the attacker to potentially inject its own devices to receive sensitive historical keys without proper security checks. Note that this only affects clients running the SDK with the legacy crypto stack. Clients using the new Rust cryptography stack (i.e. those that call `MatrixClient.initRustCrypto()` instead of `MatrixClient.initCrypto()`) are unaffected by this vulnerability, because `MatrixClient.sendSharedHistoryKeys()` raises an exception in such environments. The vulnerability was fixed in matrix-js-sdk 34.8.0 by removing the vulnerable functionality. As a workaround, remove use of affected functionality from clients.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- EPSS: 0.677%, percentile 53.686%, 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: ≥ 9.11.0, \< 34.8.0
- Npm matrix-js-sdk (Npm): ≥ 9.11.0, \< 34.8.0

## References

- <https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-4jf8-g8wp-cx7c>
- <https://github.com/matrix-org/matrix-spec-proposals/pull/3061>
- <https://github.com/matrix-org/matrix-js-sdk/commit/2fb1e659c81f75253c047832dc9dcc2beddfac5f>
- <https://ubuntu.com/security/CVE-2024-47080>
- <https://www.cve.org/CVERecord?id=CVE-2024-47080>
- <https://security-tracker.debian.org/tracker/CVE-2024-47080>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47080>
- <https://github.com/matrix-org/matrix-js-sdk>

---

Data as of 2026-12-05T04:51:21.225Z. 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
