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 interfacer-http

Dependencies

(17 total, 9 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 async-trait^0.10.1.80up to date
 cookie^0.120.18.1out of date
 derive_more^0.150.99.17out of date
 http ⚠️^0.11.1.0out of date
 interfacer-http-attribute^0.20.2.1up to date
 encoding^0.20.2.33up to date
 mime^0.30.3.17up to date
 rmp-serde^0.131.3.0out of date
 serde^1.01.0.200up to date
 serde-xml-rs^0.30.6.0out of date
 serde_derive^1.01.0.200up to date
 serde_json^1.01.0.116up to date
 serde_urlencoded^0.60.7.1out of date
 tokio ⚠️^0.2.0-alpha.41.37.0out of date
 unhtml^0.70.8.0out of date
 unhtml_derive^0.70.8.0out of date
 url^22.5.0up to date

Security Vulnerabilities

http: Integer Overflow in HeaderMap::reserve() can cause Denial of Service

RUSTSEC-2019-0033

HeaderMap::reserve() used usize::next_power_of_two() to calculate the increased capacity. However, next_power_of_two() silently overflows to 0 if given a sufficiently large number in release mode.

If the map was not empty when the overflow happens, the library will invoke self.grow(0) and start infinite probing. This allows an attacker who controls the argument to reserve() to cause a potential denial of service (DoS).

The flaw was corrected in 0.1.20 release of http crate.

http: HeaderMap::Drain API is unsound

RUSTSEC-2019-0034

tokio: Data race when sending and receiving after closing a `oneshot` channel

RUSTSEC-2021-0124

If a tokio::sync::oneshot channel is closed (via the oneshot::Receiver::close method), a data race may occur if the oneshot::Sender::send method is called while the corresponding oneshot::Receiver is awaited or calling try_recv.

When these methods are called concurrently on a closed channel, the two halves of the channel can concurrently access a shared memory location, resulting in a data race. This has been observed to cause memory corruption.

Note that the race only occurs when both halves of the channel are used after the Receiver half has called close. Code where close is not used, or where the Receiver is not awaited and try_recv is not called after calling close, is not affected.

See tokio#4225 for more details.