ADVISORIES

Vulnerability

CVE-2021-40823

A logic error in the room key sharing functionality of matrix-js-sdk (aka Matrix Javascript SDK) before 12.4.1 allows a malicious Matrix homeserver present in an encrypted room to steal room encryption keys (via crafted Matrix protocol messages) that were originally sent by affected Matrix clients participating in that room. This allows the homeserver to decrypt end-to-end encrypted messages sent by affected clients.

4 advisories report this vulnerability, across 4 ecosystems.

Medium severity All Alpine 1Debian 1Ubuntu 1npm 1

Advisories

  • ALPINE-CVE-2021-40823

    A logic error in the room key sharing functionality of matrix-js-sdk (aka Matrix Javascript SDK) before 12.4.1 allows a malicious Matrix homeserver present in an encrypted room to steal room encryption keys (via crafted…

    CVE-2021-40823 Alpine Updated 3 November 2026
  • DEBIAN-CVE-2021-40823

    A logic error in the room key sharing functionality of matrix-js-sdk (aka Matrix Javascript SDK) before 12.4.1 allows a malicious Matrix homeserver present in an encrypted room to steal room encryption keys (via crafted…

    CVE-2021-40823 Debian Updated 24 November 2026
  • GHSA-23cm-x6j7-6hq3

    matrix-js-sdk can be tricked into disclosing E2EE room keys to a participating homeserver

    Moderate CVE-2021-40823 npm Updated 8 November 2023
  • UBUNTU-CVE-2021-40823

    A logic error in the room key sharing functionality of matrix-js-sdk (aka Matrix Javascript SDK) before 12.4.1 allows a malicious Matrix homeserver present in an encrypted room to steal room encryption keys (via crafted…

    CVE-2021-40823 Ubuntu Updated 24 October 2025

References