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

High 8.2 Published Updated

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.

PackageAffectedFixed in
matrix-js-sdk npmAll versions19.4.0
matrix-js-sdk npmAll versions19.4.0
Linux distribution packages (2)
element-desktop openSUSE:TumbleweedAll versions1.11.4-1.1
element-web openSUSE:TumbleweedAll versions1.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.

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.

Is CVE-2022-36059 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free