Repository navigation
fix(deps): move lettre to 0.11.24, which fixes six SMTP advisories that fail cargo deny - #312
Merged
Merged
Conversation
…at fail cargo deny `cargo deny check advisories` began to fail on 2026-11-18 against lettre 0.11.23, the version main locks (thrust-adapters-selfhosted, the SMTP adapter, used by thrust-server). Six advisories, all fixed in 0.11.24: - STARTTLS response injection lets a man-in-the-middle forge SMTP replies (RUSTSEC-2026-0560; only `Tls::Required` and `Tls::Opportunistic` connections, not implicit TLS) - missing dot-stuffing after a bare LF or CR allows SMTP command injection - a panic on an EHLO reply line of only white space - messages for an address with a quoted local part are sent to a different address - a panic on a mailbox display name containing CR or LF - unbounded buffering of an SMTP reply It was found because the `security / deny` job runs only when a pull request changes Cargo.lock; #310 did (dev-dependency edges inside the workspace), and the job failed there on lettre alone. Any pull request that touches the lockfile fails the same way until this lands. The change is one package: `cargo update -p lettre`, with the one unrelated line it also rewrote (tempfile's getrandom, 0.4.3 to 0.3.4) put back, so the diff is lettre's version and checksum. `scripts/check-cargo-lock.sh` agrees the lockfile is what cargo writes. Verified on this Mac: - `cargo deny check`: advisories, bans, licenses and sources all ok. The control is the same check on lettre 0.11.23, which failed with those six errors in CI run 44368874336. - the SMTP adapter's own tests against a real server in Docker (`smtp_sink`, 7 tests, which include STARTTLS required with the relay's certificate checked, implicit TLS, a wrong login, the server's own refusals): 7 of 7 pass on 0.11.24. Not run: the rest of CI (it runs on the pull request). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
aRustyDev
temporarily deployed
to
preview-control-plane
November 18, 2026 18:40 — with
GitHub Actions
Inactive
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
aRustyDev
enabled auto-merge (squash)
November 18, 2026 18:56
aRustyDev
added a commit
that referenced
this pull request
Nov 18, 2026
Main moved four commits while #310 was open (#307, #308, #309 and the lettre fix #312), and two files conflicted: - crates/adapters/postgres/src/lib.rs: #308 made `Migration` borrow its strings (`Migration<'a>`), and this branch added migration 0020 to the list. The list is `[Migration<'static>; 20]`: #308's type, this branch's twentieth entry. - docs/src/testing/status.md: #309 rewrote the G-46 row and this branch added G-47 after it. G-46 is main's row, byte for byte (compared with `diff`), and G-47 follows it. Merged, not rebased, because a force-push is blocked on this repository and #310 is already published. The lettre bump of #312 comes in with the merge, which is what turns the `security / deny` job green on this branch (it failed on lettre 0.11.23 alone). Checked on the merged tree before this commit: no conflict markers left, `scripts/check-contract-counts.sh` (74, 6; stage 2: 68, 4), `cargo fmt --all --check`, `cargo clippy --workspace --all-targets -- -D warnings` and the wasm32 clippy of the Worker crates. The test batteries are re-run on the merge commit and listed in the pull request. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lettre0.11.23, whichmainlocks, now has six RUSTSEC advisories (all fixed in 0.11.24), socargo deny check advisoriesfails. One of them, RUSTSEC-2026-0560, lets a man-in-the-middle forge SMTP replies on a STARTTLS connection; the others are SMTP command injection by a bare LF or CR, two panics on malformed input, a message sent to the wrong address for a quoted local part, and an unbounded reply buffer. The SMTP adapter (thrust-adapters-selfhosted, used bythrust-server) is the only user.The
security / denyjob runs only when a pull request changesCargo.lock, which is whymainitself was green. #310 changes the lockfile (workspace-internal dev-dependency edges), andsecurity / denyfailed on it with these six errors and nothing else (ci run 44368874336; every other job of that run passed). Any pull request that touches the lockfile will fail the same way until this lands, so #310 is waiting for it.The change
Cargo.lock, two lines: lettre's version and checksum.cargo update -p lettrealso rewrote one unrelated line (tempfile'sgetrandom, 0.4.3 to 0.3.4); I put it back so the diff is the one package, andscripts/check-cargo-lock.shagrees the lockfile is what cargo writes.What was run
On this Mac, on this branch:
cargo deny check: advisories, bans, licenses and sources all ok. The control is the same check on 0.11.23: it failed with those six errors in the run above.smtp_sink, 7 tests: STARTTLS required with the relay's certificate checked, implicit TLS, a wrong login, a certificate for the wrong host, the server's own refusals): 7 of 7 pass on 0.11.24.Not run here: the rest of CI, which runs on this pull request.
🤖 Generated with Claude Code