Vulnerability library
Security checkOctober 15, 2024

Matrix JavaScript SDK's key history sharing could share keys to malicious devices

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmmatrix-js-sdk

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

In matrix-js-sdk versions 9.11.0 through 34.7.0, the method MatrixClient.sendSharedHistoryKeys is vulnerable to interception by malicious homeservers. The method implements functionality proposed in MSC3061 and can be used by clients to share historical message keys with newly invited users, granting them access to past messages in the room.

Recommendation

Update the matrix-js-sdk package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 9.11.0, < 34.8.0
  • Patched version(s): 34.8.0

References

Could your website be exposed too?

SmartScanner can check your website for Matrix JavaScript SDK's key history sharing could share keys to malicious devices and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 15, 2024