Repository navigation
Update lettre, url, quinn, sqlx and parquet for their RustSec advisories - #937
Merged
Merged
Conversation
cargo audit failed on main with twelve advisories. The lockfile moves to the fixed releases: - lettre 0.11.23 -> 0.11.25 (RUSTSEC-2026-0560 to -0565), the SMTP client of outgoing mail: forged replies after STARTTLS, command injection after a bare LF, a quoted local part sent to another address, memory exhaustion and panics from a hostile server. - url 2.5.8 -> 2.5.9 (RUSTSEC-2026-0592): stack overflow in Url::origin() on nested blob: URLs. - quinn-proto 0.11.18 -> 0.11.19 and quinn-udp 0.5.15 -> 0.5.16 (RUSTSEC-2026-0523, -0524, -0538), and libsqlite3-sys 0.30.1 -> 0.40.0 (RUSTSEC-2026-0459), which sqlx 0.9.1 allows: lockfile entries of features the workspace does not compile. - parquet and parquet_derive 60.1.0 -> 60.2.0, which clears the unsound warning RUSTSEC-2026-0595. curve25519-dalek 4.1.3 (RUSTSEC-2026-0620) is accepted in .cargo/audit.toml: the fix is in 5.1.0 only, rPGP needs 4.x, and the faulty AVX-512 backend is compiled by a nightly rustc alone, while Forge is built with the pinned stable toolchain. Three unmaintained warnings stay (chrono, chrono-tz, astral-tokio-tar); they do not fail the audit and have no release to move to. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012e6DJY4xSPLWVHnr546DHR
tests/begin.rs asserted that sqlx's own Pool::begin leaves a transaction open when its caller is dropped while Postgres answers the BEGIN, to tell when a sqlx release fixes it. sqlx 0.9.1 does (it counts the transaction before the round trip), so the assertion failed with the updated lockfile. The test now asserts that neither forge_db::begin nor Pool::begin leaves one, and the doc comment of forge_db::begin says which sqlx releases had the fault. forge_db::begin itself stays: it is still correct, and replacing its 70 callers is a change of its own. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012e6DJY4xSPLWVHnr546DHR
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.
Clears the twelve RustSec advisories that fail
cargo auditonmain(theauditjob of #927's run, and the daily Audit workflow's runs).Cargo.lockand.cargo/audit.tomlchange, and noCargo.toml; one test offorge-dbfollowssqlx0.9.1 (below).Advisories
lettre0.11.23STARTTLS, SMTP command injection after a bare LF, quoted local part sent to another address, memory exhaustion and panics from a hostile serverurl2.5.8Url::origin()on nestedblob:URLsform_urlencoded1.2.3)origin()is called on administrator-entered URLs and the base URL onlyquinn-proto0.11.18quinn-udp0.5.15libsqlite3-sys0.30.1sqlx0.9.1 allows (0.9.0 capped it below 0.38)sqlx-sqliteis not compiledcurve25519-dalek4.1.3.cargo/audit.tomlparquetandparquet_derivemove from 60.1.0 to 60.2.0 as well, which clears theunsoundwarning RUSTSEC-2026-0595 (bloom filters in encrypted files; Forge writes none).The one accepted advisory
curve25519-dalekis fixed in 5.1.0 only, and rPGP (pgp0.21.1, the newest) needs 4.x, as doed25519-dalek2 andx25519-dalek2. In 4.0.0 to 4.1.3 the AVX-512 backend is compiled only by a nightly rustc (#[cfg(nightly)], set by the crate'sbuild.rsfrom the compiler's channel). Forge is built with the pinned stable toolchain (rust-toolchain.toml, the Dockerfile'srust:1.99.1), which compiles the AVX2 and serial backends; the advisory names neither. The entry in.cargo/audit.tomlsays so, and goes once rPGP moves tocurve25519-dalek5.What stays
Three
unmaintainedwarnings remain. They do not failcargo audit, and none has a release to move to:chronoandchrono-tz(RUSTSEC-2026-0543, -0555): used across the workspace, and bysqlx,parquetandcroner. Leaving them means moving tojiffortime, a change of its own.astral-tokio-tar(RUSTSEC-2026-0440): a dependency oftestcontainers(tests only), whose newest release, 0.28.0, still uses it.Behaviour changes that come with the updates
lettre0.11.24 refuses addresses with non-ASCII white space or control characters, fails the connection when a server sends anything between itsSTARTTLSreply and the TLS handshake, and fails a send whoseDATAreply is not of the expected class.url2.5.9: ablob:URL whose inner URL is nothttp,httpsorfilehas an opaque origin.sqlx0.9.1 rolls back a transaction whose caller is dropped while Postgres answers theBEGIN(launchbadge/sqlx 4394), the faultforge_db::beginworks around (CI: a killed Nexus import resumed to "completed" with one of its packages missing (nexus_import test failed on main) #570).crates/db/tests/begin.rsasserted thatPool::beginstill had it, to tell when a release fixes it, and failed with the new lockfile. It now asserts that neitherforge_db::beginnorPool::beginleaves a transaction open, and the doc comment offorge_db::beginsays which releases had the fault.forge_db::beginstays: it is still correct, and replacing its 70 callers is a change of its own. The one directpool.begin()outside the tests (crates/server/src/traffic/maxmind.rs) is safe with this release.sqlx0.9.1 also readshostaddrin a database URL as libpq does (the address to connect to, withhoststill naming the server for TLS) instead of as an alias ofhost, and setsTCP_NODELAYon its sockets. Nothing in Forge or its documentation useshostaddr.Verification
cargo audit0.22.2 (CI's pin) on the new lockfile: no vulnerability, the three warnings above.cargo clippy --workspace --all-targets --all-features -- -D warnings,cargo fmt --all --checkandcargo xtask changelog --checkpass.cargo test -p forge-server --test email --test email_oauth --test invitations --test trafficpasses: mail goes out overSTARTTLSand implicit TLS to a real SMTP server (mailpit), with and without AUTH.cargo test -p forge-db -p forge-trafficpasses,tests/begin.rsnine times in a row (six failing before its change, three passing after)..sqlxdrift guard againstsqlx0.9.1, are left to this pull request's CI.Notes
lettreto 0.11.24,url,sqlx,parquet) among 21, withpgp0.21.1 andzip9.9.0. Whichever merges second needs its lockfile rebuilt.docs/changes/2.2.0/mail-and-url-advisories.security.md, named rather than numbered: no issue asks for this change.cargo auditoff pull requests is CI: run cargo audit on main's schedule only, not on pull requests #936. This pull request still runs theauditjob, which checks the fix.https://claude.ai/code/session_012e6DJY4xSPLWVHnr546DHR
Generated by Claude Code