This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate matrix-sdk

Dependencies

(34 total, 14 outdated, 5 possibly insecure)

CrateRequiredLatestStatus
 anyhow^1.0.571.0.102up to date
 anymap2^0.13.00.13.0up to date
 async-once-cell^0.3.10.5.4out of date
 async-stream^0.3.30.3.6up to date
 async-trait^0.1.530.1.89up to date
 backoff^0.4.00.4.0up to date
 bytes ⚠️^1.1.01.11.1maybe insecure
 dashmap^5.2.06.1.0out of date
 derive_builder^0.11.20.20.2out of date
 event-listener^2.5.25.4.1out of date
 eyre ⚠️^0.6.80.6.12maybe insecure
 futures-core^0.3.210.3.32up to date
 futures-signals^0.3.300.3.34up to date
 futures-util^0.3.210.3.32up to date
 http^0.2.61.4.0out of date
 image^0.24.20.25.10out of date
 matrix-sdk-base ⚠️^0.6.10.16.0out of date
 matrix-sdk-common^0.6.00.16.0out of date
 matrix-sdk-indexeddb^0.2.00.16.0out of date
 matrix-sdk-sled^0.2.00.2.0up to date
 mime^0.3.160.3.17up to date
 rand^0.8.50.10.0out of date
 reqwest^0.11.100.13.2out of date
 ruma^0.7.00.14.1out of date
 serde^1.0.1361.0.228up to date
 serde_json^1.0.791.0.149up to date
 thiserror^1.0.302.0.18out of date
 tokio ⚠️^1.17.01.50.0maybe insecure
 tokio-stream^0.1.80.1.18up to date
 tracing^0.1.340.1.44up to date
 url^2.2.22.5.8up to date
 warp ⚠️^0.3.20.4.2out of date
 wasm-timer^0.2.50.2.5up to date
 zeroize^1.3.01.8.2up to date

Dev dependencies

(14 total, 5 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 anyhow^1.0.571.0.102up to date
 ctor^0.1.230.6.3out of date
 dirs^4.0.06.0.0out of date
 futures^0.3.210.3.32up to date
 getrandom^0.2.60.4.2out of date
 matches^0.1.90.1.10up to date
 matrix-sdk-test^0.6.00.16.0out of date
 once_cell^1.10.01.21.4up to date
 serde_json^1.0.791.0.149up to date
 tempfile^3.3.03.27.0up to date
 tokio ⚠️^1.17.01.50.0maybe insecure
 tracing-subscriber ⚠️^0.3.110.3.23maybe insecure
 wasm-bindgen-test^0.3.300.3.64up to date
 wiremock^0.5.130.6.5out of date

Security Vulnerabilities

warp: Improper validation of Windows paths could lead to directory traversal attack

RUSTSEC-2022-0082

Path resolution in warp::filters::fs::dir didn't correctly validate Windows paths meaning paths like /foo/bar/c:/windows/web/screen/img101.png would be allowed and respond with the contents of c:/windows/web/screen/img101.png. Thus users could potentially read files anywhere on the filesystem.

This only impacts Windows. Linux and other unix likes are not impacted by this.

tokio: reject_remote_clients Configuration corruption

RUSTSEC-2023-0001

On Windows, configuring a named pipe server with pipe_mode will force ServerOptions::reject_remote_clients as false.

This drops any intended explicit configuration for the reject_remote_clients that may have been set as true previously.

The default setting of reject_remote_clients is normally true meaning the default is also overridden as false.

Workarounds

Ensure that pipe_mode is set first after initializing a ServerOptions. For example:

let mut opts = ServerOptions::new();
opts.pipe_mode(PipeMode::Message);
opts.reject_remote_clients(true);

eyre: Parts of Report are dropped as the wrong type during downcast

RUSTSEC-2024-0021

In affected versions, after a Report is constructed using wrap_err or wrap_err_with to attach a message of type D onto an error of type E, then using downcast to recover ownership of either the value of type D or the value of type E, one of two things can go wrong:

  • If downcasting to E, there remains a value of type D to be dropped. It is incorrectly "dropped" by running E's drop behavior, rather than D's. For example if D is &str and E is std::io::Error, there would be a call of std::io::Error::drop in which the reference received by the Drop impl does not refer to a valid value of type std::io::Error, but instead to &str.

  • If downcasting to D, there remains a value of type E to be dropped. When D and E do not happen to be the same size, E's drop behavior is incorrectly executed in the wrong location. The reference received by the Drop impl may point left or right of the real E value that is meant to be getting dropped.

In both cases, when the Report contains an error E that has nontrivial drop behavior, the most likely outcome is memory corruption.

When the Report contains an error E that has trivial drop behavior (for example a Utf8Error) but where D has nontrivial drop behavior (such as String), the most likely outcome is that downcasting to E would leak D.

tracing-subscriber: Logging user input may result in poisoning logs with ANSI escape sequences

RUSTSEC-2025-0055

Previous versions of tracing-subscriber were vulnerable to ANSI escape sequence injection attacks. Untrusted user input containing ANSI escape sequences could be injected into terminal output when logged, potentially allowing attackers to:

  • Manipulate terminal title bars
  • Clear screens or modify terminal display
  • Potentially mislead users through terminal manipulation

In isolation, impact is minimal, however security issues have been found in terminal emulators that enabled an attacker to use ANSI escape sequences via logs to exploit vulnerabilities in the terminal emulator.

This was patched in PR #3368 to escape ANSI control characters from user input.

matrix-sdk-base: matrix-sdk-base: Panic in the `RoomMember::normalized_power_level()` method

RUSTSEC-2025-0065

In matrix-sdk-base before 0.14.1, calling the RoomMember::normalized_power_level() method can cause a panic if a room member has a power level of Int::Min.

matrix-sdk-base: matrix-sdk-base: Denial of service due to custom `m.room.join_rules` events

RUSTSEC-2025-0135

The matrix-sdk-base crate is 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.

bytes: Integer overflow in `BytesMut::reserve`

RUSTSEC-2026-0007

In the unique reclaim path of BytesMut::reserve, the condition

if v_capacity >= new_cap + offset

uses an unchecked addition. When new_cap + offset overflows usize in release builds, this condition may incorrectly pass, causing self.cap to be set to a value that exceeds the actual allocated capacity. Subsequent APIs such as spare_capacity_mut() then trust this corrupted cap value and may create out-of-bounds slices, leading to UB.

This behavior is observable in release builds (integer overflow wraps), whereas debug builds panic due to overflow checks.

PoC

use bytes::*;

fn main() {
    let mut a = BytesMut::from(&b"hello world"[..]);
    let mut b = a.split_off(5);

    // Ensure b becomes the unique owner of the backing storage
    drop(a);

    // Trigger overflow in new_cap + offset inside reserve
    b.reserve(usize::MAX - 6);

    // This call relies on the corrupted cap and may cause UB & HBO
    b.put_u8(b'h');
}

Workarounds

Users of BytesMut::reserve are only affected if integer overflow checks are configured to wrap. When integer overflow is configured to panic, this issue does not apply.