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 iroh

Dependencies

(56 total, 27 outdated, 7 possibly insecure)

CrateRequiredLatestStatus
 aead^0.5.20.5.2up to date
 anyhow^11.0.102up to date
 atomic-waker^1.1.21.1.2up to date
 axum^0.70.8.9out of date
 backoff^0.4.00.4.0up to date
 bytes ⚠️^1.71.11.1maybe insecure
 clap^44.6.1up to date
 concurrent-queue^2.52.5.0up to date
 crypto_box^0.9.10.9.1up to date
 data-encoding^2.22.11.0up to date
 der^0.70.8.0out of date
 derive_more^1.0.02.1.1out of date
 ed25519-dalek^2.02.2.0up to date
 futures-util^0.30.3.32up to date
 hickory-resolver=0.25.0-alpha.50.26.1out of date
 http^11.4.0up to date
 igd-next^0.15.10.17.0out of date
 indicatif^0.170.18.4out of date
 instant^0.10.1.13up to date
 iroh-base^0.33.00.98.0out of date
 iroh-metrics^0.310.38.3out of date
 iroh-relay^0.330.98.0out of date
 n0-future^0.1.20.3.2out of date
 iroh-net-report^0.330.34.1out of date
 netdev^0.31.00.43.0out of date
 netwatch^0.30.17.0out of date
 parse-size=1.0.01.1.0out of date
 pin-project^11.1.13up to date
 pkarr^26.0.0out of date
 portmapper^0.30.17.0out of date
 iroh-quinn^0.13.00.16.1out of date
 iroh-quinn-proto^0.13.00.15.1out of date
 iroh-quinn-udp^0.5.70.8.0out of date
 rand^0.80.10.1out of date
 rcgen^0.130.14.8out of date
 reqwest^0.120.13.3out of date
 ring ⚠️^0.170.17.14maybe insecure
 rustls ⚠️^0.230.23.40maybe insecure
 serde^11.0.228up to date
 smallvec^1.11.11.15.1up to date
 strum^0.260.28.0out of date
 stun-rs^0.1.50.1.11up to date
 swarm-discovery^0.3.0-alpha.20.6.0out of date
 thiserror^22.0.18up to date
 time ⚠️^0.30.3.47maybe insecure
 tokio ⚠️^11.52.3maybe insecure
 tokio-stream^0.1.150.1.18up to date
 tokio-util^0.70.7.18up to date
 tracing^0.10.1.44up to date
 tracing-subscriber ⚠️^0.30.3.23maybe insecure
 url^2.52.5.8up to date
 wasm-bindgen-futures^0.40.4.71up to date
 rustls-webpki ⚠️^0.1020.103.13out of date
 webpki-roots^0.261.0.7out of date
 x509-parser^0.160.18.1out of date
 z32^1.0.31.3.0up to date

Dev dependencies

(12 total, 2 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 axum^0.70.8.9out of date
 clap^44.6.1up to date
 futures-lite^2.62.6.1up to date
 pretty_assertions^1.41.4.1up to date
 rand_chacha^0.3.10.10.0out of date
 serde_json^11.0.149up to date
 testresult^0.4.00.4.1up to date
 tokio ⚠️^11.52.3maybe insecure
 tracing-subscriber ⚠️^0.30.3.23maybe insecure
 tracing-subscriber-wasm^0.1.00.1.0up to date
 tracing-test^0.2.50.2.6up to date
 wasm-bindgen-test^0.30.3.71up to date

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);

rustls: rustls network-reachable panic in `Acceptor::accept`

RUSTSEC-2024-0399

A bug introduced in rustls 0.23.13 leads to a panic if the received TLS ClientHello is fragmented. Only servers that use rustls::server::Acceptor::accept() are affected.

Servers that use tokio-rustls's LazyConfigAcceptor API are affected.

Servers that use tokio-rustls's TlsAcceptor API are not affected.

Servers that use rustls-ffi's rustls_acceptor_accept API are affected.

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.

tracing-subscriber: Logging user input may result in poisoning logs with ANSI escape sequences

RUSTSEC-2025-0055

Previous versions of tracing-subscriber were vulnerable to ANSI escape sequence injection attacks. Untrusted user input containing ANSI escape sequences could be injected into terminal output when logged, potentially allowing attackers to:

  • Manipulate terminal title bars
  • Clear screens or modify terminal display
  • Potentially mislead users through terminal manipulation

In isolation, impact is minimal, however security issues have been found in terminal emulators that enabled an attacker to use ANSI escape sequences via logs to exploit vulnerabilities in the terminal emulator.

This was patched in PR #3368 to escape ANSI control characters from user input.

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.

rustls-webpki: CRLs not considered authoritative by Distribution Point due to faulty matching logic

RUSTSEC-2026-0049

If a certificate had more than one distributionPoint, then only the first distributionPoint would be considered against each CRL's IssuingDistributionPoint distributionPoint, and then the certificate's subsequent distributionPoints would be ignored.

The impact was that correctly provided CRLs would not be consulted to check revocation. With UnknownStatusPolicy::Deny (the default) this would lead to incorrect but safe Error::UnknownRevocationStatus. With UnknownStatusPolicy::Allow this would lead to inappropriate acceptance of revoked certificates.

This vulnerability is thought to be of limited impact. This is because both the certificate and CRL are signed -- an attacker would need to compromise a trusted issuing authority to trigger this bug. An attacker with such capabilities could likely bypass revocation checking through other more impactful means (such as publishing a valid, empty CRL.)

More likely, this bug would be latent in normal use, and an attacker could leverage faulty revocation checking to continue using a revoked credential.

This vulnerability is identified as GHSA-pwjx-qhcg-rvj4. Thank you to @1seal for the report.

rustls-webpki: Name constraints for URI names were incorrectly accepted

RUSTSEC-2026-0098

Name constraints for URI names were ignored and therefore accepted.

Note this library does not provide an API for asserting URI names, and URI name constraints are otherwise not implemented. URI name constraints are now rejected unconditionally.

Since name constraints are restrictions on otherwise properly-issued certificates, this bug is reachable only after signature verification and requires misissuance to exploit.

This vulnerability is identified as GHSA-965h-392x-2mh5. Thank you to @1seal for the report.

rustls-webpki: Name constraints were accepted for certificates asserting a wildcard name

RUSTSEC-2026-0099

Permitted subtree name constraints for DNS names were accepted for certificates asserting a wildcard name.

This was incorrect because, given a name constraint of accept.example.com, *.example.com could feasibly allow a name of reject.example.com which is outside the constraint. This is very similar to CVE-2025-61727.

Since name constraints are restrictions on otherwise properly-issued certificates, this bug is reachable only after signature verification and requires misissuance to exploit.

This vulnerability is identified as GHSA-xgp8-3hg3-c2mh. Thank you to @1seal for the report.

rustls-webpki: Reachable panic in certificate revocation list parsing

RUSTSEC-2026-0104

A panic was reachable when parsing certificate revocation lists via [BorrowedCertRevocationList::from_der] or [OwnedCertRevocationList::from_der]. This was the result of mishandling a syntactically valid empty BIT STRING appearing in the onlySomeReasons element of a IssuingDistributionPoint CRL extension.

This panic is reachable prior to a CRL's signature being verified.

Applications that do not use CRLs are not affected.

Thank you to @tynus3 for the report.