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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | thunderbird | 102.3.0-3.el8_6.alma | ALSA-2022:6708 |
| AlmaLinux:9 | thunderbird | 102.3.0-3.el9_0.alma | ALSA-2022:6717 |
| Alpine:v3.20 | element-web | 1.11.4-r0 | ALPINE-CVE-2022-36059 |
| Alpine:v3.21 | element-web | 1.11.4-r0 | ALPINE-CVE-2022-36059 |
| Alpine:v3.22 | element-web | 1.11.4-r0 | ALPINE-CVE-2022-36059 |
| Alpine:v3.23 | element-web | 1.11.4-r0 | ALPINE-CVE-2022-36059 |
| Alpine:v3.24 | element-web | 1.11.4-r0 | ALPINE-CVE-2022-36059 |
| Debian:12 | thunderbird | 1:102.2.1-1 | DEBIAN-CVE-2022-36059 |
| Debian:13 | thunderbird | 1:102.2.1-1 | DEBIAN-CVE-2022-36059 |
| Debian:14 | thunderbird | 1:102.2.1-1 | DEBIAN-CVE-2022-36059 |
| Rocky Linux:8 | thunderbird | 0:102.3.0-3.el8_6 | RLSA-2022:6708 |
| Ubuntu:22.04:LTS | node-matrix-js-sdk | no fix listed | UBUNTU-CVE-2022-36059 |
| Ubuntu:24.04:LTS | node-matrix-js-sdk | no fix listed | UBUNTU-CVE-2022-36059 |
| Ubuntu:22.04:LTS | thunderbird | 1:102.2.2+build1-0ubuntu0.22.04.1 | UBUNTU-CVE-2022-36059 |
| Ubuntu:22.04:LTS | thunderbird | 1:102.2.2+build1-0ubuntu0.22.04.1 | USN-5663-1 |
| npm | matrix-js-sdk | 19.4.0 | GHSA-rfv9-x7hh-xc32 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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