CVE-2022-39236 Matrix Javascript SDK improper beacon events can cause availability issues

Medium 4.3 Published Updated

Attackers can send malformed beacon events to disrupt the Matrix JavaScript SDK, causing data corruption or service unavailability for client applications.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-39236?

CVE-2022-39236 is a medium-severity denial of service vulnerability in matrix-org matrix-js-sdk, published on 28 Sep 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Matrix Javascript SDK is the Matrix Client-Server SDK for JavaScript. Starting with version 17.1.0-rc.1, improperly formed beacon events can 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 is patched in matrix-js-sdk v19.7.0. Redacting applicable events, waiting for the sync processor to store data, and restarting the client are possible workarounds. Alternatively, redacting the applicable events and clearing all storage will fix the further perceived issues. Downgrading to an unaffected version, noting that such a version may be subject to other vulnerabilities, will additionally resolve the issue.

Weakness: CWE-20

Which versions are affected by CVE-2022-39236?

2 open source packages ship an affected version, including matrix-js-sdk. It affects 1 product.

PackageAffectedFixed in
matrix-js-sdk npmFrom 17.1.0-rc.119.7.0
matrix-js-sdk npmFrom 17.1.0-rc.119.7.0

Products include Matrix Javascript Sdk.

How do I fix CVE-2022-39236?

Upgrade matrix-js-sdk to 19.7.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2022-39236 being exploited?

There is no known exploitation of CVE-2022-39236 in the wild and no public exploit code.

Sources

Also known as CLEANSTART-2024-EM09581, DEBIAN-CVE-2022-39236, GHSA-hvv8-5v86-r45x, UBUNTU-CVE-2022-39236.

Is CVE-2022-39236 in your software?

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

Check your SBOMs for free