CVEfocus › CVE database › CVE-2022-36059

CVE-2022-36059Prototype pollution in matrix-js-sdk

CVSS 8.2 HighEPSS 1.0% (higher than 60% of CVEs)Published 2023-03-28Updated 2025-02-18Assigner: GitHub_M

matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. In versions prior to 19.4.0 events sent with special strings in key places can temporarily disrupt or impede the matrix-js-sdk from functioning properly, potentially impacting the consumer's ability to process data safely. Note that the matrix-js-sdk can appear to be operating normally but be excluding or corrupting runtime data presented to the consumer. This issue has been fixed in matrix-js-sdk 19.4.0 and users are advised to upgrade. Users unable to upgrade may mitigate this issue by redacting applicable events, waiting for the sync processor to store data, and restarting the client. Alternatively, redacting the applicable events and clearing all storage will often fix most perceived issues. In some cases, no workarounds are possible.

CWE-1321

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

22Fixed
3Fix pending
2Under investigation
1Will not fix
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04thunderbirdNot affected
vulnerable_code_not_present
Ubuntu 25.10thunderbirdNot affected
vulnerable_code_not_present
Ubuntu 24.04node-matrix-js-sdkUnder investigationUBUNTU-CVE-2022-36059
Ubuntu 24.04thunderbirdNot affected
vulnerable_code_not_present
Ubuntu 22.04node-matrix-js-sdkUnder investigationUBUNTU-CVE-2022-36059
Ubuntu 22.04thunderbirdFixed1:102.2.2+build1-0ubuntu0.22.04.1UBUNTU-CVE-2022-36059
Ubuntu 20.04node-matrix-js-sdkFix pendingUBUNTU-CVE-2022-36059
Ubuntu 20.04thunderbirdFixed1:102.2.2+build1-0ubuntu0.20.04.1UBUNTU-CVE-2022-36059
Ubuntu 18.04thunderbirdFixed1:102.2.2+build1-0ubuntu0.18.04.1UBUNTU-CVE-2022-36059
Ubuntu 16.04thunderbirdFix pending
Ubuntu 14.04thunderbirdFix pending
Debian 14thunderbirdFixed1:102.2.1-1DEBIAN-CVE-2022-36059
Debian 13thunderbirdFixed1:102.2.1-1DEBIAN-CVE-2022-36059
Debian 12thunderbirdFixed1:102.2.1-1DEBIAN-CVE-2022-36059
Red Hat Enterprise Linux 9thunderbirdFixed0:102.3.0-3.el9_0RHSA-2022:6717
Red Hat Enterprise Linux 8thunderbirdFixed0:102.3.0-3.el8_6RHSA-2022:6708
Red Hat Enterprise Linux 7thunderbirdFixed0:102.3.0-3.el7_9RHSA-2022:6710
Red Hat Enterprise Linux 6thunderbirdWill not fix
Out of support scope
AlmaLinux 9thunderbirdFixed102.3.0-3.el9_0.almaALSA-2022:6717
AlmaLinux 8thunderbirdFixed102.3.0-3.el8_6.almaALSA-2022:6708
Rocky Linux 8thunderbirdFixed0:102.3.0-3.el8_6RLSA-2022:6708
Alpine Linux 3.24element-webFixed1.11.4-r0ALPINE-CVE-2022-36059
Alpine Linux 3.23element-webFixed1.11.4-r0ALPINE-CVE-2022-36059
Alpine Linux 3.22element-webFixed1.11.4-r0ALPINE-CVE-2022-36059
Alpine Linux 3.21element-webFixed1.11.4-r0ALPINE-CVE-2022-36059
Alpine Linux 3.20element-webFixed1.11.4-r0ALPINE-CVE-2022-36059
Alpine Linux 3.19element-webFixed1.11.4-r0ALPINE-CVE-2022-36059
Alpine Linux 3.18element-webFixed1.11.4-r0ALPINE-CVE-2022-36059
Alpine Linux 3.17riot-webFixed1.11.4-r0ALPINE-CVE-2022-36059
Alpine Linux 3.16riot-webFixed1.11.4-r0ALPINE-CVE-2022-36059
npm librarymatrix-js-sdkFixed19.4.0GHSA-rfv9-x7hh-xc32

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.