Improper Authentication Affecting matrix-js-sdk package, versions >=9.11.0 <34.8.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.05% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-MATRIXJSSDK-8220271
  • published 16 Oct 2024
  • disclosed 15 Oct 2024
  • credit Denis Kasak

How to fix?

Upgrade matrix-js-sdk to version 34.8.0 or higher.

Overview

matrix-js-sdk is a Matrix Client-Server SDK for Javascript

Affected versions of this package are vulnerable to Improper Authentication through the sendSharedHistoryKeys method. An attacker can intercept and obtain sensitive historical keys by injecting malicious devices into the communication without proper verification of the user's cryptographic identity. This is only exploitable if the client is running the legacy crypto stack.

Note:

This vulnerability does not affect users using the new Rust cryptography stack (i.e., those that call MatrixClient.initRustCrypto() instead of MatrixClient.initCrypto()).

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
8.2 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    Present
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    High
  • Integrity (VI)
    None
  • Availability (VA)
    None
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None