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, 23 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 anyhow^1.0.01.0.82up to date
 async-compression^0.4.00.4.9up to date
 async-trait^0.1.510.1.80up to date
 base64^0.21.00.22.1out of date
 bytes^1.1.01.6.0up to date
 chrono^0.4.310.4.38up to date
 eyre ⚠️^0.60.6.12maybe insecure
 fluent^0.16.00.16.0up to date
 fluent-langneg^0.13.00.14.0out of date
 fluent-syntax^0.11.00.11.0up to date
 futures-util^0.3.170.3.30up to date
 headers^0.3.70.4.0out of date
 hex^0.40.4.3up to date
 http^0.2.51.1.0out of date
 httpdate^1.0.21.0.3up to date
 hyper^0.14.171.3.1out of date
 hyper-rustls^0.24.00.27.1out of date
 intl-memoizer^0.5.10.5.1up to date
 cookie^0.170.18.1out of date
 csrf^0.4.10.4.1up to date
 opentelemetry^0.21.00.22.0out of date
 prometheus^0.13.00.13.3up to date
 tempfile^3.2.03.10.1up to date
 mime^0.3.160.3.17up to date
 mime_guess^2.0.32.0.4up to date
 multer^2.1.03.0.0out of date
 nix^0.27.10.28.0out of date
 openssl^0.10.560.10.64up to date
 opentelemetry-http^0.10.00.11.1out of date
 opentelemetry-prometheus^0.14.00.15.0out of date
 opentelemetry-semantic-conventions^0.13.00.14.0out of date
 parking_lot^0.12.00.12.2up to date
 percent-encoding^2.1.02.3.1up to date
 pin-project-lite^0.2.70.2.14up to date
 poem-derive^1.3.593.0.0out of date
 priority-queue^1.2.02.0.2out of date
 quick-xml^0.30.00.31.0out of date
 rand^0.8.40.8.5up to date
 rcgen^0.11.10.13.1out of date
 redis^0.23.00.25.3out of date
 regex^1.5.51.10.4up to date
 rfc7239^0.1.00.1.1up to date
 ring^0.16.200.17.8out of date
 rust-embed^8.08.3.0up to date
 rustls-pemfile^1.0.02.1.2out of date
 serde^1.0.1301.0.200up to date
 serde_json^1.0.681.0.116up to date
 serde_urlencoded^0.7.10.7.1up to date
 serde_yaml^0.90.9.34+deprecatedup to date
 smallvec^1.6.11.13.2up to date
 sse-codec^0.3.20.3.2up to date
 thiserror^1.0.301.0.59up to date
 time^0.30.3.36up to date
 tokio ⚠️^1.17.01.37.0maybe insecure
 tokio-metrics^0.3.00.3.1up to date
 tokio-native-tls^0.3.00.3.1up to date
 tokio-openssl^0.6.30.6.4up to date
 tokio-rustls^0.24.00.26.0out of date
 tokio-stream^0.1.80.1.15up to date
 tokio-tungstenite^0.20.00.21.0out of date
 tokio-util^0.7.00.7.10up to date
 tower^0.4.80.4.13up to date
 tracing^0.1.360.1.40up to date
 unic-langid^0.9.00.9.4up to date
 wildmatch^22.3.3up to date
 x509-parser^0.15.00.16.0out of date

Dev dependencies

(2 total, 1 possibly insecure)

CrateRequiredLatestStatus
 async-stream^0.3.20.3.5up to date
 tokio ⚠️^1.17.01.37.0maybe 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.