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, 4 possibly insecure)

CrateRequiredLatestStatus
 anyhow^1.0.571.0.100up 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.0up to date
 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.31up to date
 futures-signals^0.3.300.3.34up to date
 futures-util^0.3.210.3.31up to date
 http^0.2.61.4.0out of date
 image^0.24.20.25.9out 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.9.2out of date
 reqwest^0.11.100.12.26out of date
 ruma^0.7.00.14.0out of date
 serde^1.0.1361.0.228up to date
 serde_json^1.0.791.0.145up to date
 thiserror^1.0.302.0.17out of date
 tokio ⚠️^1.17.01.48.0maybe insecure
 tokio-stream^0.1.80.1.17up to date
 tracing^0.1.340.1.44up to date
 url^2.2.22.5.7up 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.100up to date
 ctor^0.1.230.6.3out of date
 dirs^4.0.06.0.0out of date
 futures^0.3.210.3.31up to date
 getrandom^0.2.60.3.4out 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.3up to date
 serde_json^1.0.791.0.145up to date
 tempfile^3.3.03.23.0up to date
 tokio ⚠️^1.17.01.48.0maybe insecure
 tracing-subscriber ⚠️^0.3.110.3.22maybe insecure
 wasm-bindgen-test^0.3.300.3.56up 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.