cve.bz

CVE-2022-39250 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 software development kit (SDK) for JavaScript. Prior to version 19.7.0, an attacker cooperating with a malicious homeserver could interfere with the verification flow between two users, injecting its own cross-signing user identity in place of one of the users’ identities. This would lead to the other device trusting/verifying the user identity under the control of the homeserver instead of the intended one. The vulnerability is a bug in the matrix-js-sdk, caused by checking and signing user identities and devices in two separate steps, and inadequately fixing the keys to be signed between those steps. Even though the attack is partly made possible due to the design decision of treating cross-signing user identities as Matrix devices on the server side (with their device ID set to the public part of the user identity key), no other examined implementations were vulnerable. Starting with version 19.7.0, the matrix-js-sdk has been modified to double check that the key signed is the one that was verified instead of just referencing the key by ID. An additional check has been made to report an error when one of the device ID matches a cross-signing key. As this attack requires coordination between a malicious homeserver and an attacker, those who trust their homeservers do not need a particular 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-39250 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-39250?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-39250?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-39250 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-5w8r-8pgj-5jmfnpmmatrix-js-sdk<19.7.019.7.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11node-matrix-js-sdkno fix listedDEBIAN-CVE-2022-39250
Ubuntu18.04:LTSthunderbird1:102.4.2+build2-0ubuntu0.18.04.1UBUNTU-CVE-2022-39250 USN-5724-1
Ubuntu20.04:LTSthunderbird1:102.4.2+build2-0ubuntu0.20.04.1UBUNTU-CVE-2022-39250 USN-5724-1
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTSnode-matrix-js-sdkno fix listedUBUNTU-CVE-2022-39250
Ubuntu22.04:LTSthunderbird1:102.4.2+build2-0ubuntu0.22.04.1UBUNTU-CVE-2022-39250 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-39250
Alpinev3.18, v3.19, v3.20 and 4 moreelement-web1.11.7-r0ALPINE-CVE-2022-39250

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-39250.

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