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

Crate hyper_serde


(8 total, 5 outdated, 2 insecure)

 cookie^ of date
 headers^ of date
 mime^ to date
 serde^ to date
 serde_bytes^ to date
 time^ of date

Dev dependencies

(2 total, 1 outdated)

 serde_test^ to date
 time^ of date

Security Vulnerabilities

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


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 sufficently 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


hyper: Multiple Transfer-Encoding headers misinterprets request payload


hyper's HTTP server code had a flaw that incorrectly understands some requests with multiple transfer-encoding headers to have a chunked payload, when it should have been rejected as illegal. This combined with an upstream HTTP proxy that understands the request payload boundary differently can result in "request smuggling" or "desync attacks".