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

Crate surf

Dependencies

(17 total, 3 outdated, 1 insecure)

CrateRequiredLatestStatus
 async-native-tls^0.3.30.6.0out of date
 async-std^1.6.01.13.2up to date
 async-trait^0.1.360.1.92up to date
 cfg-if^1.0.01.0.5up to date
 encoding_rs^0.8.200.8.44up to date
 futures-util^0.3.50.3.34up to date
 getrandom^0.2.00.4.3out of date
 http-client^6.5.06.5.3up to date
 http-types^2.5.02.12.0up to date
 log^0.4.70.4.35up to date
 mime_guess^2.0.32.0.5up to date
 once_cell^1.4.11.21.4up to date
 pin-project-lite^0.2.00.2.17up to date
 rustls ⚠️^0.180.23.46insecure
 serde^1.0.971.0.229up to date
 serde_json^1.0.401.0.154up to date
 web-sys^0.3.250.3.107up to date

Dev dependencies

(5 total, 2 outdated)

CrateRequiredLatestStatus
 async-std^1.6.01.13.2up to date
 femme^1.1.02.2.1out of date
 mockito^0.23.31.7.2out of date
 serde^1.0.971.0.229up to date
 tide^0.16.00.16.0up to date

Security Vulnerabilities

rustls: `rustls::ConnectionCommon::complete_io` could fall into an infinite loop based on network input

RUSTSEC-2024-0336

If a close_notify alert is received during a handshake, complete_io does not terminate.

Callers which do not call complete_io are not affected.

rustls-tokio and rustls-ffi do not call complete_io and are not affected.

rustls::Stream and rustls::StreamOwned types use complete_io and are 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.