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

(70 total, 21 outdated, 4 possibly insecure)

CrateRequiredLatestStatus
 anyhow^1.0.01.0.102up to date
 async-compression^0.4.00.4.41up to date
 base64^0.22.00.22.1up to date
 bytes ⚠️^1.1.01.11.1maybe insecure
 chrono^0.4.310.4.44up to date
 eyre^0.6.120.6.12up to date
 fluent^0.16.00.17.0out of date
 fluent-langneg^0.13.00.14.2out of date
 fluent-syntax^0.11.00.12.0out of date
 futures-util^0.3.170.3.32up to date
 headers^0.4.00.4.1up to date
 hex^0.40.4.3up to date
 http^1.0.01.4.0up to date
 http-body-util^0.1.00.1.3up to date
 httpdate^1.0.21.0.3up to date
 hyper^1.0.01.9.0up to date
 hyper-util^0.1.60.1.20up to date
 intl-memoizer^0.5.10.5.3up to date
 cookie^0.180.18.1up to date
 csrf^0.4.10.5.0out of date
 opentelemetry^0.28.00.31.0out of date
 prometheus^0.13.00.14.0out of date
 tempfile^3.2.03.27.0up to date
 mime^0.3.160.3.17up to date
 mime_guess^2.0.32.0.5up to date
 multer^3.0.03.1.0up to date
 nix^0.29.00.31.2out of date
 openssl ⚠️^0.10.710.10.76maybe insecure
 opentelemetry-http^0.28.00.31.0out of date
 opentelemetry-prometheus^0.28.00.31.0out of date
 opentelemetry-semantic-conventions^0.28.00.31.0out of date
 parking_lot^0.12.00.12.5up to date
 percent-encoding^2.1.02.3.2up to date
 pin-project-lite^0.2.70.2.17up to date
 poem-derive^3.1.03.1.12up to date
 priority-queue^2.0.22.7.0up to date
 quick-xml^0.36.10.39.2out of date
 rand^0.8.40.10.0out of date
 rcgen^0.12.00.14.7out of date
 redis^0.281.2.0out of date
 regex^1.5.51.12.3up to date
 reqwest^0.12.20.13.2out of date
 rfc7239^0.1.00.1.3up to date
 ring ⚠️^0.17.70.17.14maybe insecure
 rust-embed^8.08.11.0up to date
 rustls-pemfile^2.0.02.2.0up to date
 serde^1.0.1301.0.228up to date
 serde_json^1.0.681.0.149up 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.1up to date
 sonic-rs^0.3.50.5.8out of date
 sse-codec^0.3.20.3.3up to date
 sync_wrapper^1.0.01.0.2up to date
 thiserror^2.02.0.18up to date
 time ⚠️^0.30.3.47maybe insecure
 tokio^1.39.11.51.1up to date
 tokio-metrics^0.3.00.4.9out of date
 tokio-native-tls^0.3.00.3.1up to date
 tokio-openssl^0.6.30.6.5up to date
 tokio-rustls^0.25.00.26.4out of date
 tokio-stream^0.1.80.1.18up to date
 tokio-tungstenite^0.250.29.0out of date
 tokio-util^0.7.00.7.18up to date
 tower^0.4.80.5.3out of date
 tracing^0.1.360.1.44up to date
 unic-langid^0.9.00.9.6up to date
 uuid^1.8.01.23.0up to date
 wildmatch^22.6.1up to date
 x509-parser^0.16.00.18.1out of date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 async-stream^0.3.20.3.6up to date
 tokio^1.39.11.51.1up to date

Security Vulnerabilities

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.

bytes: Integer overflow in `BytesMut::reserve`

RUSTSEC-2026-0007

In the unique reclaim path of BytesMut::reserve, the condition

if v_capacity >= new_cap + offset

uses an unchecked addition. When new_cap + offset overflows usize in release builds, this condition may incorrectly pass, causing self.cap to be set to a value that exceeds the actual allocated capacity. Subsequent APIs such as spare_capacity_mut() then trust this corrupted cap value and may create out-of-bounds slices, leading to UB.

This behavior is observable in release builds (integer overflow wraps), whereas debug builds panic due to overflow checks.

PoC

use bytes::*;

fn main() {
    let mut a = BytesMut::from(&b"hello world"[..]);
    let mut b = a.split_off(5);

    // Ensure b becomes the unique owner of the backing storage
    drop(a);

    // Trigger overflow in new_cap + offset inside reserve
    b.reserve(usize::MAX - 6);

    // This call relies on the corrupted cap and may cause UB & HBO
    b.put_u8(b'h');
}

Workarounds

Users of BytesMut::reserve are only affected if integer overflow checks are configured to wrap. When integer overflow is configured to panic, this issue does not apply.

time: Denial of Service via Stack Exhaustion

RUSTSEC-2026-0009

Impact

When user-provided input is provided to any type that parses with the RFC 2822 format, a denial of service attack via stack exhaustion is possible. The attack relies on formally deprecated and rarely-used features that are part of the RFC 2822 format used in a malicious manner. Ordinary, non-malicious input will never encounter this scenario.

Patches

A limit to the depth of recursion was added in v0.3.47. From this version, an error will be returned rather than exhausting the stack.

Workarounds

Limiting the length of user input is the simplest way to avoid stack exhaustion, as the amount of the stack consumed would be at most a factor of the length of the input.