This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate trust-dns-proto

Dependencies

(36 total, 14 outdated, 4 insecure)

CrateRequiredLatestStatus
 async-trait^0.1.430.1.92up to date
 backtrace^0.3.500.3.77up to date
 bytes^11.12.1up to date
 cfg-if^11.0.5up to date
 data-encoding^2.2.02.11.1up to date
 enum-as-inner^0.60.7.0out of date
 futures-channel^0.3.50.3.34up to date
 futures-io^0.3.50.3.34up to date
 futures-util^0.3.50.3.34up to date
 h2 ⚠️^0.3.00.4.20insecure
 http^0.21.5.0out of date
 idna ⚠️^0.4.01.1.0insecure
 ipnet^2.3.02.12.2up to date
 js-sys^0.3.440.3.107up to date
 native-tls^0.20.2.18up to date
 once_cell^1.18.01.21.4up to date
 openssl^0.10.550.10.81up to date
 quinn^0.100.11.12out of date
 rand^0.80.10.3out of date
 ring ⚠️^0.160.17.14insecure
 rustls^0.21.00.23.46out of date
 rustls-pemfile^1.0.02.2.0out of date
 serde^1.01.0.229up to date
 smallvec^1.61.16.4up to date
 socket2^0.50.6.5out of date
 thiserror^1.0.202.0.21out of date
 tinyvec^1.1.11.13.3up to date
 tokio^1.211.54.1up to date
 tokio-native-tls^0.3.00.3.1up to date
 tokio-openssl^0.6.00.6.5up to date
 tokio-rustls^0.24.00.26.6out of date
 tracing^0.1.300.1.44up to date
 url^2.4.02.5.8up to date
 wasm-bindgen^0.2.580.2.130up to date
 rustls-webpki ⚠️^0.101.00.103.16insecure
 webpki-roots^0.25.01.0.11out of date

Dev dependencies

(4 total, all up-to-date)

CrateRequiredLatestStatus
 futures-executor^0.3.50.3.34up to date
 openssl^0.10.550.10.81up to date
 tokio^1.211.54.1up to date
 tracing-subscriber^0.30.3.23up to date

Security Vulnerabilities

idna: `idna` accepts Punycode labels that do not produce any non-ASCII when decoded

RUSTSEC-2024-0421

idna 0.5.0 and earlier accepts Punycode labels that do not produce any non-ASCII output, which means that either ASCII labels or the empty root label can be masked such that they appear unequal without IDNA processing or when processed with a different implementation and equal when processed with idna 0.5.0 or earlier.

Concretely, example.org and xn--example-.org become equal after processing by idna 0.5.0 or earlier. Also, example.org.xn-- and example.org. become equal after processing by idna 0.5.0 or earlier.

In applications using idna (but not in idna itself) this may be able to lead to privilege escalation when host name comparison is part of a privilege check and the behavior is combined with a client that resolves domains with such labels instead of treating them as errors that preclude DNS resolution / URL fetching and with the attacker managing to introduce a DNS entry (and TLS certificate) for an xn---masked name that turns into the name of the target when processed by idna 0.5.0 or earlier.

Remedy

Upgrade to idna 1.0.3 or later, if depending on idna directly, or to url 2.5.4 or later, if depending on idna via url. (This issue was fixed in idna 1.0.0, but versions earlier than 1.0.3 are not recommended for other reasons.)

When upgrading, please take a moment to read about alternative Unicode back ends for idna.

If you are using Rust earlier than 1.81 in combination with SQLx 0.8.2 or earlier, please also read an issue about combining them with url 2.5.4 and idna 1.0.3.

Additional information

This issue resulted from idna 0.5.0 and earlier implementing the UTS 46 specification literally on this point and the specification having this bug. The specification bug has been fixed in revision 33 of UTS 46.

Acknowledgements

Thanks to kageshiron for recognizing the security implications of this behavior.

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.

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.

h2: h2 unbounded empty DATA frames

RUSTSEC-2026-0258

The h2 crate, used internally by hyper, had a flaw that would accept and queue empty DATA frames without limit. If streams were not actively drained, this could lead to unbounded memory usage, or a panic if the length overflows.

Low severity.

Patched in v0.4.16.