CVE-2025-66622: RUSTSEC-2025-0135 - matrix-sdk-base: Denial of service due to custom `m.room.join_rules` events
CVE-2025-66622 · Severity: high · CVSS 7.5 · Published 2025-12-09
matrix-sdk-base is the base component to build a Matrix client library. Versions 0.14.1 and prior are unable to handle responses that include custom m.room.join_rules values due to a serialization bug. This can be exploited to cause a denial-of-service condition, if a user is invited to a room with non-standard join rules, the crate's sync process will stall, preventing further processing for all rooms. This is fixed in version 0.16.0.
Yes. matrix-sdk-base (crates.io): upgrade to 0.16.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-66622?
Check whether you run matrix-sdk-base (crates.io) or Matrix-Rust-Sdk at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
matrix-sdk-base (crates.io): upgrade to 0.16.0 or later