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 websocket

Dependencies

(14 total, 11 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 base64 ⚠️^0.50.22.0out of date
 bitflags^0.92.5.0out of date
 byteorder^1.01.5.0up to date
 bytes^0.41.6.0out of date
 futures^0.10.3.30out of date
 hyper ⚠️^0.10.61.3.1out of date
 native-tls^0.1.20.2.11out of date
 rand^0.30.8.5out of date
 sha1^0.20.10.6out of date
 tokio-core^0.10.1.18up to date
 tokio-io^0.1.20.1.13up to date
 tokio-tls^0.10.3.1out of date
 unicase^1.02.7.0out of date
 url^1.02.5.0out of date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 futures-cpupool^0.10.1.8up to date

Security Vulnerabilities

base64: Integer overflow leads to heap-based buffer overflow in encode_config_buf

RUSTSEC-2017-0004

Affected versions of this crate suffered from an integer overflow bug when calculating the size of a buffer to use when encoding base64 using the encode_config_buf and encode_config functions. If the input string was large, this would cause a buffer to be allocated that was too small. Since this function writes to the buffer using unsafe code, it would allow an attacker to write beyond the buffer, causing memory corruption and possibly the execution of arbitrary code.

This flaw was corrected by using checked arithmetic to calculate the size of the buffer.

hyper: Lenient `hyper` header parsing of `Content-Length` could allow request smuggling

RUSTSEC-2021-0078

hyper's HTTP header parser accepted, according to RFC 7230, illegal contents inside Content-Length headers. Due to this, upstream HTTP proxies that ignore the header may still forward them along if it chooses to ignore the error.

To be vulnerable, hyper must be used as an HTTP/1 server and using an HTTP proxy upstream that ignores the header's contents but still forwards it. Due to all the factors that must line up, an attack exploiting this vulnerability is unlikely.

hyper: Integer overflow in `hyper`'s parsing of the `Transfer-Encoding` header leads to data loss

RUSTSEC-2021-0079

When decoding chunk sizes that are too large, hyper's code would encounter an integer overflow. Depending on the situation, this could lead to data loss from an incorrect total size, or in rarer cases, a request smuggling attack.

To be vulnerable, you must be using hyper for any HTTP/1 purpose, including as a client or server, and consumers must send requests or responses that specify a chunk size greater than 18 exabytes. For a possible request smuggling attack to be possible, any upstream proxies must accept a chunk size greater than 64 bits.