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 elastic

Dependencies

(19 total, 11 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 bytes~0.41.6.0out of date
 crossbeam-channel~0.30.5.12out of date
 elastic_requests~0.21.0-pre.20.20.10up to date
 elastic_responses~0.21.0-pre.20.20.10up to date
 elastic_types~0.21.0-pre.20.20.10up to date
 error-chain~0.110.12.4out of date
 fluent_builder~0.50.6.0out of date
 futures~0.10.3.30out of date
 http ⚠️~0.11.1.0out of date
 log~0.40.4.21up to date
 quick-error~12.0.1out of date
 reqwest~0.90.12.4out of date
 serde~11.0.198up to date
 serde_derive~11.0.198up to date
 serde_json~11.0.116up to date
 tokio ⚠️~0.11.37.0out of date
 tokio-threadpool~0.10.1.18up to date
 url~12.5.0out of date
 uuid~0.61.8.0out of date

Dev dependencies

(4 total, 1 outdated)

CrateRequiredLatestStatus
 elastic_derive~0.21.0-pre.20.20.10up to date
 env_logger~0.60.11.3out of date
 json_str~0.50.5.2up to date
 serde_derive~11.0.198up 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.