cve.bz

CVE-2022-39251 matrix javascript sdk: Improper Authentication

7.5 highEPSS 1.2%Fix available

High (7.5) in matrix javascript sdk. EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in matrix-js-sdk 19.7.0.

On this page
Matrix Javascript SDK is the Matrix Client-Server SDK for JavaScript. Prior to version 19.7.0, an attacker cooperating with a malicious homeserver can construct messages that legitimately appear to have come from another person, without any indication such as a grey shield. Additionally, a sophisticated attacker cooperating with a malicious homeserver could employ this vulnerability to perform a targeted attack in order to send fake to-device messages appearing to originate from another user. This can allow, for example, to inject the key backup secret during a self-verification, to make a targeted device start using a malicious key backup spoofed by the homeserver. These attacks are possible due to a protocol confusion vulnerability that accepts to-device messages encrypted with Megolm instead of Olm. Starting with version 19.7.0, matrix-js-sdk has been modified to only accept Olm-encrypted to-device messages. Out of caution, several other checks have been audited or added. This attack requires coordination between a malicious home server and an attacker, so those who trust their home servers do not need a workaround.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 69th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-287 Improper Authentication
CWE-322 Key Exchange without Entity Authentication
OWASP Top 10
A04:2025 Cryptographic Failures, A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-39251 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-39251?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-39251?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-39251 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
matrix:javascript_sdkbefore 19.7.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-r48r-j8fx-mq2cnpmmatrix-js-sdk<19.7.019.7.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11node-matrix-js-sdkno fix listedDEBIAN-CVE-2022-39251
Ubuntu18.04:LTSthunderbird1:102.4.2+build2-0ubuntu0.18.04.1UBUNTU-CVE-2022-39251 USN-5724-1
Ubuntu20.04:LTSthunderbird1:102.4.2+build2-0ubuntu0.20.04.1UBUNTU-CVE-2022-39251 USN-5724-1
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTSnode-matrix-js-sdkno fix listedUBUNTU-CVE-2022-39251
Ubuntu22.04:LTSthunderbird1:102.4.2+build2-0ubuntu0.22.04.1UBUNTU-CVE-2022-39251 USN-5724-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationthunderbird, thunderbird-debuginfo0:102.4.0-1.el7_9RHSA-2022:7184
Red Hatenterprise_linux:8::appstreamthunderbird, thunderbird-debuginfo, thunderbird-debugsource0:102.4.0-1.el8_6RHSA-2022:7190
Red Hatenterprise_linux:9::appstreamthunderbird, thunderbird-debuginfo, thunderbird-debugsource0:102.4.0-1.el9_0RHSA-2022:7178
Red Hatrhel_e4s:8.1::appstreamthunderbird, thunderbird-debuginfo, thunderbird-debugsource0:102.4.0-1.el8_1RHSA-2022:7183
Red Hatrhel_eus:8.2::appstreamthunderbird, thunderbird-debuginfo, thunderbird-debugsource0:102.4.0-1.el8_2RHSA-2022:7182
Red Hatrhel_eus:8.4::appstreamthunderbird, thunderbird-debuginfo, thunderbird-debugsource0:102.4.0-1.el8_4RHSA-2022:7181
SUSELinux Enterprise Module for Package Hub 15 SP3, Linux Enterprise Module for Package Hub 15 SP4, Linux Enterprise Workstation Extension 15 SP3 and 1 moreMozillaThunderbird102.4.0-150200.8.85.1SUSE-SU-2022:3800-1
openSUSELeap 15.3, Leap 15.4MozillaThunderbird102.4.0-150200.8.85.1SUSE-SU-2022:3800-1
openSUSETumbleweedMozillaThunderbird102.3.1-1.1openSUSE-SU-2024:12379-1
openSUSETumbleweedelement-desktop1.11.8-1.1openSUSE-SU-2024:12374-1
openSUSETumbleweedelement-web1.11.8-1.1openSUSE-SU-2024:12375-1
AlmaLinux8thunderbird102.4.0-1.el8_6.almaALSA-2022:7190
AlmaLinux9thunderbird102.4.0-1.el9_0.almaALSA-2022:7178
Rocky Linux8thunderbird0:102.4.0-1.el8_6RLSA-2022:7190
Rocky Linux8thunderbird0:102.4.0-1.el8_6.0.1RLSA-2022:7190
Alpinev3.16, v3.17riot-web1.11.7-r0ALPINE-CVE-2022-39251
Alpinev3.18, v3.19, v3.20 and 4 moreelement-web1.11.7-r0ALPINE-CVE-2022-39251

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7thunderbird-0:102.4.0-1.el7_9Fixed 2022-10-25RHSA-2022:7184
Red Hat Enterprise Linux 8thunderbird-0:102.4.0-1.el8_6Fixed 2022-10-25RHSA-2022:7190
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionsthunderbird-0:102.4.0-1.el8_1Fixed 2022-10-25RHSA-2022:7183
Red Hat Enterprise Linux 8.2 Extended Update Supportthunderbird-0:102.4.0-1.el8_2Fixed 2022-10-25RHSA-2022:7182
Red Hat Enterprise Linux 8.4 Extended Update Supportthunderbird-0:102.4.0-1.el8_4Fixed 2022-10-25RHSA-2022:7181
Red Hat Enterprise Linux 9thunderbird-0:102.4.0-1.el9_0Fixed 2022-10-25RHSA-2022:7178
Red Hat Enterprise Linux 6thunderbirdOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-39251.

Attack patterns (CAPEC)

  • CAPEC-22 Exploiting Trust in Client Likelihood: High · Severity: High
  • CAPEC-57 Utilizing REST's Trust in the System Resource to Obtain Sensitive Data Likelihood: Medium · Severity: Very High
  • CAPEC-94 Adversary in the Middle (AiTM) Likelihood: High · Severity: Very High
  • CAPEC-114 Authentication Abuse Severity: Medium
  • CAPEC-115 Authentication Bypass Severity: Medium
  • CAPEC-151 Identity Spoofing Likelihood: Medium · Severity: Medium
  • CAPEC-194 Fake the Source of Data Severity: Medium
  • CAPEC-593 Session Hijacking Likelihood: High · Severity: Very High
  • CAPEC-633 Token Impersonation Severity: Medium
  • CAPEC-650 Upload a Web Shell to a Web Server Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON