CVE-2024-47080
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability (CVE-2024-47080) affects matrix-js-sdk versions 9.11.0 through 34.7.0. The vulnerability exists in the MatrixClient.sendSharedHistoryKeys method, which is used to share historical message keys with newly invited users in Matrix messaging protocol. This functionality was introduced as part of MSC3061 specification to grant access to past messages in encrypted rooms (GitHub Advisory).

Technical details

The vulnerability stems from the MatrixClient.sendSharedHistoryKeys method unconditionally sending shared keys to all of the invited user's devices, without verifying the user's cryptographic identity or checking whether the user's devices are properly signed by that identity. This implementation flaw only affects clients using the legacy crypto stack. Clients using the new Rust cryptography stack (those calling MatrixClient.initRustCrypto() instead of MatrixClient.initCrypto()) are not affected as the vulnerable method raises an exception in such environments (GitHub Advisory, Security Online).

Impact

The vulnerability allows potential attackers to intercept sensitive historical encryption keys by injecting their own devices without proper security verification. This could lead to unauthorized access to encrypted message history in affected rooms (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in matrix-js-sdk version 34.8.0 by removing the vulnerable functionality entirely. As a workaround for affected versions, users should remove the use of affected functionality from their clients. Organizations using the SDK are strongly urged to update to version 34.8.0 or later (GitHub Advisory).

Community reactions

Following the disclosure, the Matrix.org Security Team has announced plans to revise the MSC3061 specification to explicitly clarify that key forwarding should only forward keys to verified devices owned by verified users, ensuring that historical keys are never shared with untrusted devices (Security Online).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-65513HIGH7.5
  • JavaScriptJavaScript
  • mcp-fetch-server
NoNoDec 09, 2025
CVE-2025-67716MEDIUM5.7
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 11, 2025
CVE-2025-67490MEDIUM5.4
  • JavaScriptJavaScript
  • @auth0/nextjs-auth0
NoYesDec 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management