Skip to content

chore(deps): upgrade lettre to 0.11.24 - #751

Open
itulo wants to merge 3 commits into
cot-rs:masterfrom
itulo:fix/747-lettre-0.11.24
Open

itulo wants to merge 3 commits into
cot-rs:masterfrom
itulo:fix/747-lettre-0.11.24

Conversation

@itulo

@itulo itulo commented Nov 19, 2026 •

Copy link
Copy Markdown

Related issue or discussion

Fixes #745
Fixes #746
Fixes #747
Fixes #748
Fixes #749
Fixes #750

Description

Upgrade lettre from 0.11.23 to 0.11.24 to pick up the fix for RUSTSEC-2026-0561 (missing dot-stuffing after a bare LF or CR can allow SMTP command injection). The lockfile also moves email-encoding 0.4.2 → 0.4.3, which cargo update -p lettre pulled in as a lettre dependency.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / cleanup
  • Performance improvement
  • Other (describe above)

Checklist

  • I've read the contributing guide and the AI policy
  • Tests pass locally (just test-all) — not run in full; see below
  • Code passes clippy (just clippy)
  • Code is properly formatted (cargo fmt) — lockfile/manifest/changelog only
  • New tests added (regression test for bugs, coverage for new features) — not applicable; this is a dependency bump to the patched crate
  • Documentation (both code and site) updated (if applicable) — CHANGELOG.md

cargo check -p cot --features email completed successfully with lettre 0.11.24. I did not run just test-all in this environment.

I used an AI assistant to help prepare this bump. I reviewed the lockfile change and the advisory, and I am responsible for the commit.

RUSTSEC-2026-0561: missing dot-stuffing after a bare LF or CR can allow
SMTP command injection in lettre 0.11.23 and earlier. Patched in 0.11.24.

Fixes cot-rs#747
@github-actions github-actions Bot added A-docs Area: Documentation A-deps Area: Dependencies labels Nov 19, 2026

@m4tx m4tx left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks for this! Please drop the changes in CHANGELOG.md and I'll merge the PR.

This also fixes a few more vulnerabilities; I've updated the PR description to reflect that.

Comment thread CHANGELOG.md Outdated

## [Unreleased]

### Fixes

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we drop the change in CHANGELOG.md? We typically generate them using release-plz on each release.

lettre 0.11.24 allows email_address 0.2.10, which changed EmailAddress::email()
from String to &str. Copy the value so Cot's public Email::email() API stays
String, and reuse that in ToDbValue.
@github-actions github-actions Bot added the C-lib Crate: cot (main library crate) label Nov 20, 2026
@codecov

codecov Bot commented Nov 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
rust 91.16% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cot/src/common_types.rs 85.44% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment