Vulnerability · Published Mar 28, 2023 · Assigned by GitHub_M

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

High 8.2

In plain English

A high-severity prototype pollution in matrix-js-sdk from matrix-org. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.2High
Exploit odds (30 days)0.9%top 39.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8thunderbird102.3.0-3.el8_6.almaALSA-2022:6708
AlmaLinux:9thunderbird102.3.0-3.el9_0.almaALSA-2022:6717
Alpine:v3.20element-web1.11.4-r0ALPINE-CVE-2022-36059
Alpine:v3.21element-web1.11.4-r0ALPINE-CVE-2022-36059
Alpine:v3.22element-web1.11.4-r0ALPINE-CVE-2022-36059
Alpine:v3.23element-web1.11.4-r0ALPINE-CVE-2022-36059
Alpine:v3.24element-web1.11.4-r0ALPINE-CVE-2022-36059
Debian:12thunderbird1:102.2.1-1DEBIAN-CVE-2022-36059
Debian:13thunderbird1:102.2.1-1DEBIAN-CVE-2022-36059
Debian:14thunderbird1:102.2.1-1DEBIAN-CVE-2022-36059
Rocky Linux:8thunderbird0:102.3.0-3.el8_6RLSA-2022:6708
Ubuntu:22.04:LTSnode-matrix-js-sdkno fix listedUBUNTU-CVE-2022-36059
Ubuntu:24.04:LTSnode-matrix-js-sdkno fix listedUBUNTU-CVE-2022-36059
Ubuntu:22.04:LTSthunderbird1:102.2.2+build1-0ubuntu0.22.04.1UBUNTU-CVE-2022-36059
Ubuntu:22.04:LTSthunderbird1:102.2.2+build1-0ubuntu0.22.04.1USN-5663-1
npmmatrix-js-sdk19.4.0GHSA-rfv9-x7hh-xc32

Affected products (as reported)

VendorProductVersions
matrix-org matrix-js-sdk < 19.4.0

Weakness: CWE-1321 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

References