lettre is vulnerable to Improper Certificate Validation
91
Critical Risk
The optional Boring TLS integration passed lettre’s accept-invalid-hostnames knob straight into Boring’s verify_hostname API, but that API uses the opposite polarity. Default strict callers therefore skipped hostname checks while still believing TLS named the configured server, so an on-path peer could complete TLS with an unrelated chain-valid certificate and read or tamper with SMTP traffic including credentials. Negating the flag at both sync and async upgrade sites restores intended semantics and matches native-tls and rustls behavior.
You are affected if you are using a version that falls within the vulnerable range and boring-tls is enabled.
lettre is vulnerable to Improper Certificate Validation in versions 0.10.1 - 0.11.21.
Upgrade the lettre library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant