Skip to content

chore(deps): bump lettre from 0.11.23 to 0.11.24 in /server - #281

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/cargo/server/lettre-0.11.24
Nov 21, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
dependabot/cargo/server/lettre-0.11.24

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 21, 2026

Copy link
Copy Markdown
Contributor

Bumps lettre from 0.11.23 to 0.11.24.

Release notes

Sourced from lettre's releases.

v0.11.24 - big security release

This release fixes security issues in the SMTP transport and in the message builder. The most serious ones let a man-in-the-middle forge the replies read after STARTTLS, let message content with bare CR or LF line endings inject SMTP commands, and had messages for an address with a quoted local part sent to a different address. The others let a server exhaust memory, keep a CPU core busy or cause a panic. We recommend that everyone updates to the latest patch release.

To fix them lettre got stricter in the few places listed in the upgrade notes. That technically makes for breaking changes, but we expect most projects not to be affected by them.

Upgrade notes

  • Addresses with white space or control characters outside of ASCII are rejected
  • Mailbox::from_str keeps a quoted local part as it was written, like Address::from_str does: "d "@example.com is no longer turned into [email protected]. Quoted local parts are now validated the way Address::from_str validates them
  • Connecting fails when the server sends anything after its reply to STARTTLS and before the TLS handshake
  • Sending fails when the reply to DATA, or to the message content, is not of the expected class
  • The Display implementation of Mailbox writes a CR or LF in the display name as a space

Security

  • Fix STARTTLS response injection, where replies sent in cleartext before the TLS handshake were read as if they came over TLS GHSA-q3jf-wmp2-47pg and b404122
  • Fix SMTP command injection through message content with bare CR or LF line endings, which was sent without dot-stuffing 3d9a6e6
  • Fix Mailbox::from_str changing a quoted local part, which had messages sent to a different address than the one given GHSA-62w5-58xq-p27j and f4d5abc
  • Check the class of the replies to DATA and to the message content, so that a reply read out of turn can't have the content read as commands or a rejected message reported as sent 04e3ac3
  • Fix unbounded memory use reading an SMTP reply line that never ends GHSA-pmvc-x69f-5p9f and 075849f
  • Fix quadratic time parsing an SMTP reply made of many short lines GHSA-pmvc-x69f-5p9f and 8146136
  • Fix panic formatting a Mailbox with a CR or LF in its display name 0ad883c
  • Fix panic on an EHLO reply line made of white space only GHSA-23wm-4vvw-r7p2 and 4a58794

Features

  • Add allow_partial_recipients to the SMTP transport builders, to still send a message when the server rejects some of its recipients #1169

Bug Fixes

  • Keep a raw Date header with a timezone other than UTC instead of replacing it with the current date #1162
  • Don't add an empty line to messages ending with CRLF when sending them via SMTP #1175
  • Fix building with rustls-platform-verifier on Android #1178
  • Don't close pooled connections after every message with the async-std SMTP transport #1179
  • Cap the memory allocated up front when deserializing an Envelope #1180
  • Only reuse pooled SMTP connections that reply 250 to NOOP #1181
  • Fix TLS with AsyncSmtpTransport when tokio1-boring-tls is the only TLS feature enabled #1183
  • Fix stack overflow in relaxed DKIM header canonicalization when built without optimizations #1184
  • Keep the private key out of the Debug output of DkimSigningKey and DkimConfig #1184
  • Keep the credentials out of the Debug output of the SMTP Auth command #1184
  • Accept SMTP replies without text after the reply code #1182
  • Fix panic when using or closing an SMTP connection after its TLS upgrade failed #1186
  • Accept SMTP reply lines longer than 1000 bytes, as sent by Microsoft 365 #1168 and 075849f
  • Reject white space and control characters outside of ASCII in addresses b2b3abf

Misc

  • Set TCP_NODELAY on SMTP connections #1159
  • Fix building with -Z direct-minimal-versions #1174
  • Bump minimum supported email-encoding to v0.4.3 #1174

... (truncated)

Changelog

Sourced from lettre's changelog.

v0.11.24 (2026-11-17)

This release fixes security issues in the SMTP transport and in the message builder. The most serious ones let a man-in-the-middle forge the replies read after STARTTLS, let message content with bare CR or LF line endings inject SMTP commands, and had messages for an address with a quoted local part sent to a different address. The others let a server exhaust memory, keep a CPU core busy or cause a panic. We recommend that everyone updates to the latest patch release.

To fix them lettre got stricter in the few places listed in the upgrade notes. That technically makes for breaking changes, but we expect most projects not to be affected by them.

Upgrade notes

  • Addresses with white space or control characters outside of ASCII are rejected
  • Mailbox::from_str keeps a quoted local part as it was written, like Address::from_str does: "d "@example.com is no longer turned into [email protected]. Quoted local parts are now validated the way Address::from_str validates them
  • Connecting fails when the server sends anything after its reply to STARTTLS and before the TLS handshake
  • Sending fails when the reply to DATA, or to the message content, is not of the expected class
  • The Display implementation of Mailbox writes a CR or LF in the display name as a space

Security

  • Fix STARTTLS response injection, where replies sent in cleartext before the TLS handshake were read as if they came over TLS ([GHSA-q3jf-wmp2-47pg] and [b404122])
  • Fix SMTP command injection through message content with bare CR or LF line endings, which was sent without dot-stuffing ([3d9a6e6])
  • Fix Mailbox::from_str changing a quoted local part, which had messages sent to a different address than the one given ([GHSA-62w5-58xq-p27j] and [f4d5abc])
  • Check the class of the replies to DATA and to the message content, so that a reply read out of turn can't have the content read as commands or a rejected message reported as sent ([04e3ac3])
  • Fix unbounded memory use reading an SMTP reply line that never ends ([GHSA-pmvc-x69f-5p9f] and [075849f])
  • Fix quadratic time parsing an SMTP reply made of many short lines ([GHSA-pmvc-x69f-5p9f] and [8146136])
  • Fix panic formatting a Mailbox with a CR or LF in its display name ([0ad883c])
  • Fix panic on an EHLO reply line made of white space only ([GHSA-23wm-4vvw-r7p2] and [4a58794])

Features

  • Add allow_partial_recipients to the SMTP transport builders, to still send a message when the server rejects some of its recipients (#1169)

Bug Fixes

  • Keep a raw Date header with a timezone other than UTC instead of replacing it with the current date (#1162)
  • Don't add an empty line to messages ending with CRLF when sending them via SMTP (#1175)
  • Fix building with rustls-platform-verifier on Android (#1178)
  • Don't close pooled connections after every message with the async-std SMTP transport (#1179)
  • Cap the memory allocated up front when deserializing an Envelope (#1180)
  • Only reuse pooled SMTP connections that reply 250 to NOOP (#1181)
  • Fix TLS with AsyncSmtpTransport when tokio1-boring-tls is the only TLS feature enabled (#1183)
  • Fix stack overflow in relaxed DKIM header canonicalization when built without optimizations (#1184)
  • Keep the private key out of the Debug output of DkimSigningKey and DkimConfig (#1184)
  • Keep the credentials out of the Debug output of the SMTP Auth command (#1184)
  • Accept SMTP replies without text after the reply code (#1182)

... (truncated)

Commits
  • a410c39 Prepare v0.11.24
  • 8146136 fix(transport-smtp): avoid quadratic parsing of multi-line replies
  • b2b3abf fix: reject white space outside of ASCII in addresses
  • 4a58794 fix(transport-smtp): avoid panic on whitespace-only EHLO response line
  • 0ad883c fix(builder): avoid panic on CR/LF in mailbox display name
  • 075849f fix(transport-smtp): bound SMTP response line reads
  • 04e3ac3 fix(transport-smtp): check the class of the replies to DATA
  • f4d5abc fix(builder): keep quoted local parts verbatim in Mailbox::from_str
  • 3d9a6e6 fix(transport-smtp): dot-stuff lines after a bare CR or LF
  • b404122 fix(transport-smtp): reject plaintext pipelined after the STARTTLS reply
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [lettre](https://github.com/lettre/lettre) from 0.11.23 to 0.11.24.
- [Release notes](https://github.com/lettre/lettre/releases)
- [Changelog](https://github.com/lettre/lettre/blob/master/CHANGELOG.md)
- [Commits](lettre/lettre@v0.11.23...v0.11.24)

---
updated-dependencies:
- dependency-name: lettre
  dependency-version: 0.11.24
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Nov 21, 2026
@github-actions
github-actions Bot enabled auto-merge (squash) November 21, 2026 23:13
@github-actions
github-actions Bot merged commit 0fa146e into main Nov 21, 2026
5 checks passed
@dependabot
dependabot Bot deleted the dependabot/cargo/server/lettre-0.11.24 branch November 21, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants