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 poem

Dependencies

(66 total, 29 outdated, 4 possibly insecure)

CrateRequiredLatestStatus
 anyhow^1.0.01.0.98up to date
 async-compression^0.4.00.4.23up to date
 async-trait^0.1.510.1.88up to date
 base64^0.21.00.22.1out of date
 bytes^1.1.01.10.1up to date
 chrono^0.4.310.4.40up to date
 eyre ⚠️^0.60.6.12maybe insecure
 fluent^0.16.00.16.1up to date
 fluent-langneg^0.13.00.14.1out of date
 fluent-syntax^0.11.00.11.1up to date
 futures-util^0.3.170.3.31up to date
 headers^0.3.70.4.0out of date
 hex^0.40.4.3up to date
 http^0.2.51.3.1out of date
 httpdate^1.0.21.0.3up to date
 hyper^0.14.171.6.0out of date
 hyper-rustls^0.24.00.27.5out of date
 intl-memoizer^0.5.10.5.2up to date
 cookie^0.170.18.1out of date
 csrf^0.4.10.5.0out of date
 opentelemetry^0.21.00.29.1out of date
 prometheus^0.13.00.14.0out of date
 tempfile^3.2.03.19.1up to date
 mime^0.3.160.3.17up to date
 mime_guess^2.0.32.0.5up to date
 multer^2.1.03.1.0out of date
 nix^0.27.10.29.0out of date
 openssl ⚠️^0.10.560.10.72maybe insecure
 opentelemetry-http^0.10.00.29.0out of date
 opentelemetry-prometheus^0.14.00.29.1out of date
 opentelemetry-semantic-conventions^0.13.00.29.0out of date
 parking_lot^0.12.00.12.3up to date
 percent-encoding^2.1.02.3.1up to date
 pin-project-lite^0.2.70.2.16up to date
 poem-derive^1.3.593.1.9out of date
 priority-queue^1.2.02.3.1out of date
 quick-xml^0.30.00.37.4out of date
 rand^0.8.40.9.1out of date
 rcgen^0.11.10.13.2out of date
 redis^0.23.00.30.0out of date
 regex^1.5.51.11.1up to date
 rfc7239^0.1.00.1.3up to date
 ring ⚠️^0.16.200.17.14out of date
 rust-embed^8.08.7.0up to date
 rustls-pemfile^1.0.02.2.0out of date
 serde^1.0.1301.0.219up to date
 serde_json^1.0.681.0.140up to date
 serde_urlencoded^0.7.10.7.1up to date
 serde_yaml^0.90.9.34+deprecatedup to date
 smallvec^1.6.11.15.0up to date
 sse-codec^0.3.20.3.2up to date
 thiserror^1.0.302.0.12out of date
 time^0.30.3.41up to date
 tokio ⚠️^1.17.01.44.2maybe insecure
 tokio-metrics^0.3.00.4.1out of date
 tokio-native-tls^0.3.00.3.1up to date
 tokio-openssl^0.6.30.6.5up to date
 tokio-rustls^0.24.00.26.2out of date
 tokio-stream^0.1.80.1.17up to date
 tokio-tungstenite^0.20.00.26.2out of date
 tokio-util^0.7.00.7.15up to date
 tower^0.4.80.5.2out of date
 tracing^0.1.360.1.41up to date
 unic-langid^0.9.00.9.5up to date
 wildmatch^22.4.0up to date
 x509-parser^0.15.00.17.0out of date

Dev dependencies

(2 total, 1 possibly insecure)

CrateRequiredLatestStatus
 async-stream^0.3.20.3.6up to date
 tokio ⚠️^1.17.01.44.2maybe insecure

Security Vulnerabilities

tokio: reject_remote_clients Configuration corruption

RUSTSEC-2023-0001

On Windows, configuring a named pipe server with pipe_mode will force ServerOptions::reject_remote_clients as false.

This drops any intended explicit configuration for the reject_remote_clients that may have been set as true previously.

The default setting of reject_remote_clients is normally true meaning the default is also overridden as false.

Workarounds

Ensure that pipe_mode is set first after initializing a ServerOptions. For example:

let mut opts = ServerOptions::new();
opts.pipe_mode(PipeMode::Message);
opts.reject_remote_clients(true);

eyre: Parts of Report are dropped as the wrong type during downcast

RUSTSEC-2024-0021

In affected versions, after a Report is constructed using wrap_err or wrap_err_with to attach a message of type D onto an error of type E, then using downcast to recover ownership of either the value of type D or the value of type E, one of two things can go wrong:

  • If downcasting to E, there remains a value of type D to be dropped. It is incorrectly "dropped" by running E's drop behavior, rather than D's. For example if D is &str and E is std::io::Error, there would be a call of std::io::Error::drop in which the reference received by the Drop impl does not refer to a valid value of type std::io::Error, but instead to &str.

  • If downcasting to D, there remains a value of type E to be dropped. When D and E do not happen to be the same size, E's drop behavior is incorrectly executed in the wrong location. The reference received by the Drop impl may point left or right of the real E value that is meant to be getting dropped.

In both cases, when the Report contains an error E that has nontrivial drop behavior, the most likely outcome is memory corruption.

When the Report contains an error E that has trivial drop behavior (for example a Utf8Error) but where D has nontrivial drop behavior (such as String), the most likely outcome is that downcasting to E would leak D.

ring: Some AES functions may panic when overflow checking is enabled.

RUSTSEC-2025-0009

ring::aead::quic::HeaderProtectionKey::new_mask() may panic when overflow checking is enabled. In the QUIC protocol, an attacker can induce this panic by sending a specially-crafted packet. Even unintentionally it is likely to occur in 1 out of every 2**32 packets sent and/or received.

On 64-bit targets operations using ring::aead::{AES_128_GCM, AES_256_GCM} may panic when overflow checking is enabled, when encrypting/decrypting approximately 68,719,476,700 bytes (about 64 gigabytes) of data in a single chunk. Protocols like TLS and SSH are not affected by this because those protocols break large amounts of data into small chunks. Similarly, most applications will not attempt to encrypt/decrypt 64GB of data in one chunk.

Overflow checking is not enabled in release mode by default, but RUSTFLAGS="-C overflow-checks" or overflow-checks = true in the Cargo.toml profile can override this. Overflow checking is usually enabled by default in debug mode.

openssl: Use-After-Free in `Md::fetch` and `Cipher::fetch`

RUSTSEC-2025-0022

When a Some(...) value was passed to the properties argument of either of these functions, a use-after-free would result.

In practice this would nearly always result in OpenSSL treating the properties as an empty string (due to CString::drop's behavior).

The maintainers thank quitbug for reporting this vulnerability to us.