SCA: security update for matrix-js-sdk (GHSA-4jf8-g8wp-cx7c)

high Tenable Self-Hosted Container Security Plugin ID 410244

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2024-47080)

See Also

https://github.com/advisories/GHSA-4jf8-g8wp-cx7c

Plugin Details

Severity: High

ID: 410244

Version: Revision 1.19

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.3

Percentile: 53.52

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2024-47080

CVSS v3

Risk Factor: Critical

Base Score: 9.1

Temporal Score: 7.9

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: High

Base Score: 8.7

Threat Score: 6.6

Threat Vector: CVSS:4.0/E:U

Vector: 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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 10/15/2024

Vulnerability Publication Date: 10/15/2024

Reference Information

CVE: CVE-2024-47080