Security mailing lists by PureSourceCode

CVE-2021-40823

MEDIUM 5.9CVSS 3.1

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

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.

Published
13 Sep 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-200CWE-290CWE-327
Also known as
GHSA-23cm-x6j7-6hq3
Sources
NVDJSONOSV GHSA-23cm-x6j7-6hq3JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:P/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD matrix javascript_sdk
cpe:2.3:a:matrix:javascript_sdk:*:*:*:*:*:*:*:*
< 12.4.1 12.4.1
OSV npm matrix-js-sdk < 12.4.1 12.4.1

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 13 Sep 2021)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 14 Sep 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.