CVE-2022-36059 Prototype pollution in matrix-js-sdk
Prototype pollution in matrix-js-sdk allows attackers to corrupt runtime data or disrupt client functionality via crafted events.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-36059?
CVE-2022-36059 is a high-severity vulnerability in matrix-org matrix-js-sdk, published on 28 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
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.
Weakness: CWE-1321
Which versions are affected by CVE-2022-36059?
2 open source packages ship an affected version, including matrix-js-sdk. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
matrix-js-sdk npm | All versions | 19.4.0 |
matrix-js-sdk npm | All versions | 19.4.0 |
Linux distribution packages (2)
element-desktop openSUSE:Tumbleweed | All versions | 1.11.4-1.1 |
element-web openSUSE:Tumbleweed | All versions | 1.11.4-1.1 |
Products include Matrix Javascript Sdk.
How do I fix CVE-2022-36059?
Upgrade matrix-js-sdk to 19.4.0 or later.
Is CVE-2022-36059 being exploited?
There is no known exploitation of CVE-2022-36059 in the wild and no public exploit code.
Other vulnerabilities in matrix-org matrix-js-sdk
- CVE-2022-39250 Matrix JavaScript SDK vulnerable to key/device identifier confusion in SAS verification
- CVE-2022-39251 Matrix Javascript SDK vulnerable to Olm/Megolm protocol confusion
- CVE-2023-28427 Prototype pollution in matrix-js-sdk
- CVE-2022-39249 Matrix Javascript SDK vulnerable to impersonation via forwarded Megolm sessions
- CVE-2021-40823 matrix-js-sdk can be tricked into disclosing E2EE room keys to a participating homeserver
Sources
Also known as CLEANSTART-2024-IV81629, DEBIAN-CVE-2022-36059, GHSA-rfv9-x7hh-xc32, UBUNTU-CVE-2022-36059, openSUSE-SU-2024:12294-1, openSUSE-SU-2024:12295-1.