This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate tokio-tungstenite


(11 total, 2 outdated, 1 insecure)

 log^ to date
 native-tls^ to date
 pin-project^ to date
 rustls^ to date
 tokio^ to date
 tokio-native-tls^ to date
 tokio-rustls^ to date
 tungstenite^ to date
 webpki^ of date
 webpki-roots^ of date

Dev dependencies

(4 total, 1 outdated)

 env_logger^ of date
 futures-channel^ to date
 tokio^ to date
 url^ to date

Security Vulnerabilities

futures-util: MutexGuard::map can cause a data race in safe code


Affected versions of the crate had a Send/Sync implementation for MappedMutexGuard that only considered variance on T, while MappedMutexGuard dereferenced to U.

This could of led to data races in safe Rust code when a closure used in MutexGuard::map() returns U that is unrelated to T.

The issue was fixed by fixing Send and Sync implementations, and by adding a PhantomData<&'a mut U> marker to the MappedMutexGuard type to tell the compiler that the guard is over U too.