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

Crate tower-test

Dependencies

(6 total, 1 insecure)

CrateRequiredLatestStatus
 futures-util^0.30.3.14insecure
 pin-project^11.0.7up to date
 tokio^1.01.5.0up to date
 tokio-test^0.40.4.1up to date
 tower-layer^0.30.3.1up to date
 tower-service^0.30.3.1up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 tokio^1.01.5.0up to date

Security Vulnerabilities

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

RUSTSEC-2020-0059

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.