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

Crate reqwest

Dependencies

(52 total, 16 outdated, 3 insecure)

CrateRequiredLatestStatus
 async-compression^0.4.00.4.54up to date
 base64^0.220.23.1out of date
 bytes^1.01.12.2up to date
 cookie ⚠️^0.17.00.18.3insecure
 cookie_store^0.20.00.22.1out of date
 encoding_rs^0.80.8.44up to date
 futures-channel^0.30.3.34up to date
 futures-core^0.3.00.3.34up to date
 futures-util^0.3.00.3.34up to date
 h2^0.40.4.21up to date
 h3^0.0.40.0.8out of date
 h3-quinn^0.0.50.0.10out of date
 hickory-resolver ⚠️^0.240.26.4insecure
 http^11.6.0up to date
 http-body^11.1.0up to date
 http-body-util^0.10.1.5up to date
 hyper^11.13.0up to date
 hyper-rustls^0.26.00.27.10out of date
 hyper-tls^0.60.6.0up to date
 hyper-util^0.1.30.1.21up to date
 ipnet^2.32.12.3up to date
 js-sys^0.3.450.3.107up to date
 log^0.40.4.35up to date
 mime^0.3.160.3.18up to date
 mime_guess^2.02.0.5up to date
 native-tls^0.2.100.2.18up to date
 once_cell^11.21.4up to date
 percent-encoding^2.12.3.2up to date
 pin-project-lite^0.2.00.2.19up to date
 quinn^0.100.11.12out of date
 rustls ⚠️^0.22.20.23.48insecure
 rustls-native-certs^0.70.8.5out of date
 rustls-pemfile^22.2.0up to date
 rustls-pki-types^1.1.01.16.0up to date
 serde^1.01.0.229up to date
 serde_json^1.01.0.154up to date
 serde_urlencoded^0.7.10.7.1up to date
 sync_wrapper^0.1.21.0.3out of date
 system-configuration^0.5.10.8.0out of date
 tokio^1.01.54.1up to date
 tokio-native-tls^0.3.00.3.1up to date
 tokio-rustls^0.250.26.6out of date
 tokio-socks^0.5.10.5.3up to date
 tokio-util^0.7.10.7.20up to date
 tower-service^0.30.3.3up to date
 url^2.22.5.9up to date
 wasm-bindgen^0.2.680.2.130up to date
 wasm-bindgen-futures^0.4.180.4.80up to date
 wasm-streams^0.40.7.1out of date
 web-sys^0.3.250.3.107up to date
 webpki-roots^0.26.01.0.12out of date
 winreg^0.52.00.56.0out of date

Dev dependencies

(12 total, 4 outdated)

CrateRequiredLatestStatus
 brotli^3.3.09.1.5out of date
 doc-comment^0.30.3.4up to date
 env_logger^0.100.11.12out of date
 futures-util^0.3.00.3.34up to date
 hyper^1.1.01.13.0up to date
 hyper-util^0.10.1.21up to date
 libflate^1.02.3.2out of date
 serde^1.01.0.229up to date
 tokio^1.01.54.1up to date
 wasm-bindgen^0.2.680.2.130up to date
 wasm-bindgen-test^0.30.3.80up to date
 zstd^0.130.14.5out of date

Security Vulnerabilities

rustls: `Debug` impls for client session values expose TLS secrets

RUSTSEC-2026-0346

The Debug implementations of Tls12ClientSessionValue and Tls13ClientSessionValue were derived, and so included the TLS 1.2 master secret or TLS 1.3 resumption PSK in their output.

Custom ClientSessionStore implementations that format these values with Debug (for example, when logging) could disclose these secrets to readers of the logs. This conflicts with rustls's key-material redaction policy.

Ordinary connection and built-in session cache Debug output is redacted and is not affected.

rustls: Unauthenticated ServerHello can downgrade later connections to classical key exchange

RUSTSEC-2026-0349

The client recorded the server-selected key exchange group for each server name when processing the ServerHello, before the server was authenticated. This record is used to predict which key share to send in future ClientHellos to that server name.

A network attacker can answer one connection attempt with a ServerHello selecting X25519, and then close the connection. Later ClientHellos for that name carry only an X25519 key share, while supported_groups still lists X25519MLKEM768 first. If the genuine server accepts that share rather than sending a HelloRetryRequest for its preferred hybrid group, the handshake completes with classical-only key exchange and no error. This persists for as long as the entry stays in the client's session store.

The impact is loss of post-quantum confidentiality for affected connections ("harvest now, decrypt later"). There is no key compromise and no authentication bypass.

The following are not affected:

  • connections to servers which send a HelloRetryRequest for their preferred group,
  • clients with resumption disabled (as nothing is stored), and
  • other server names.

This behaviour is discussed in draft-ietf-tls-key-share-prediction, so the practical impact depends largely on server policy.

hickory-resolver: `Resolver::lookup` and `lookup_ip` returned records that failed DNSSEC validation

RUSTSEC-2026-0514

With DNSSEC validation enabled, Resolver::lookup() and Resolver::lookup_ip() returned Ok with the records even when validation found the response bogus. The result was only visible in each record's proof status, which callers had to inspect themselves.

Applications that enable validation and treat a successful lookup as validated data would therefore accept forged or tampered answers from anyone who can answer or modify their DNS traffic.

From 0.26.2 a lookup whose records are bogus fails with a "DNSSEC validation failed" error (DnsError::DnssecBogus), the error is not retried, and the hickory-server forwarder answers SERVFAIL for it.

cookie: Private cookie nonces can repeat in processes that fork

RUSTSEC-2026-0594

Who is affected

Only applications that call fork() and then add private (encrypted) cookies on the thread that forked, in more than one of the resulting processes. This is an uncommon way to deploy a Rust web application. In particular:

  • Rocket is not affected.
  • axum is not affected as normally run. It is affected only when an application forks worker processes itself and runs each on a current-thread runtime. See "Rocket and axum" below.
  • Applications that never fork are not affected. This includes all applications on Windows.
  • Signed cookies (SignedJar) are not affected.

The exact conditions are listed under "Conditions" below.

Description

Private cookies are sealed with AES-256-GCM using a random 96-bit nonce. Affected versions drew the nonce from rand's thread-local generator, rand::thread_rng(). That generator hands out bytes from an internal buffer and only notices that the process has forked when the buffer is refilled. A process that forks therefore continues, in both the parent and the child, from the same buffered bytes, and the private cookies sealed first on each side of the fork use the same nonces.

Impact

Reusing a nonce under the same key breaks AES-GCM. From two private cookies that share a nonce, an attacker can:

  • recover the XOR of the two plaintexts, and thus either plaintext if the other is known, and
  • recover the GHASH authentication key and forge private cookies, with a name and value of their choosing, that the application accepts as authentic.

The nonce is the first 12 bytes of a private cookie's (base64-decoded) value, so a repeated nonce is visible to anyone who holds two such cookies.

Exploitation requires the uncommon deployment described above, and only the first private cookies added after a fork are affected: at most 21 per process. An attacker must obtain two of them, from two different processes.

Conditions

All of the following must hold:

  1. The target is a Unix-like system and the process calls fork() without a subsequent exec().
  2. The thread that calls fork() used rand::thread_rng() at any point before the fork. Any use counts, including Key::generate(), adding a private cookie, or a call made by an unrelated crate.
  3. After the fork, private cookies are added on that same thread in two or more of the resulting processes: the parent and a child, or several children.
  4. Those processes use the same Key.

When they hold, at most the first 21 private cookies added on that thread in each process share nonces. After that the generator reseeds and the processes diverge.

The following are not affected:

  • Applications that never fork, including all applications on Windows.
  • Processes in which the forking thread did not use rand::thread_rng() before the fork.
  • Private cookies added on threads that were created after the fork. This includes servers that fork and then start a multi-threaded async runtime in each child.
  • Signed cookies (SignedJar), which do not use a nonce.
  • Versions 0.12.0 through 0.13.3, and 0.11.2 and earlier, which obtained nonces from the operating system via ring.

Rocket and axum

Rocket and axum were tested with cookie 0.18.2 by collecting the private cookies sent by each server process and comparing their nonces.

Rocket (0.5.4, CookieJar::add_private()) is not affected. Rocket does not fork, and it handles requests on worker threads of a runtime it creates when launched. No nonce was reused:

  • when launched normally, in a single process, or
  • when a parent process used a private cookie and then forked two worker processes that each launched Rocket.

axum (0.8.9, with PrivateCookieJar from axum-extra 0.12.6) is not affected as normally run. No nonce was reused:

  • when run in a single process on a multi-threaded runtime, or
  • when a parent process used a private cookie and then forked two worker processes that each started a multi-threaded runtime.

An axum application is affected only if it does all of the following:

  1. forks worker processes itself,
  2. runs each worker on a current-thread runtime on the thread that forked, so that requests are handled on that thread, and
  3. used rand::thread_rng() on that thread before forking.

In that configuration, the first private cookies sent by two workers reused nonces: 19 when the parent had added one private cookie before forking, and 15 when the parent had only called Key::generate(). No nonce was reused when the parent did neither.

Other frameworks and libraries that use this crate's PrivateJar were not tested. The conditions above apply to them as well.

Fix

Version 0.18.3 obtains nonces directly from the operating system's random number generator, which is not affected by fork.

Workarounds

If upgrading is not possible, any one of the following prevents the reuse:

  • Do not use rand::thread_rng(), directly or indirectly, on the forking thread before forking. In particular, create the Key with Key::from() or Key::derive_from() rather than Key::generate() before the fork.
  • In each child, immediately after forking, read and discard at least 256 bytes from rand::thread_rng() before adding any private cookie.
  • Add private cookies only on threads created after the fork.

Applications that ran in an affected configuration should rotate their Key.