From fe668a7cd026d688142185b651dcbc5073a2fdd9 Mon Sep 17 00:00:00 2001 From: M3gA-Mind Date: Wed, 11 Nov 2026 14:12:42 +0530 Subject: [PATCH 1/3] Patch async-imap to the upstream commit that drops pin-utils cargo-deny fails on RUSTSEC-2026-0441: pin-utils is unmaintained, and it reaches the build only through async-imap 0.12.0 (the email feature). That advisory turns both supply-chain and storage-boundary red on main. Upstream replaced pin-utils with pin-project in async-email/async-imap d1f2606421, the only commit after the 0.12.0 release, so the patched crate is 0.12.0 with that one change and an unchanged API. Point async-imap at that commit through [patch.crates-io], and allow that one git source in deny.toml. The lockfile change is limited to async-imap's source and the removal of pin-utils. Drop the patch and the allow-git entry once a release after 0.12.0 is published. --- Cargo.lock | 10 +--------- Cargo.toml | 5 +++++ deny.toml | 4 +++- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3c2a4e6b3..1f8fe641e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -91,8 +91,7 @@ dependencies = [ [[package]] name = "async-imap" version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f97b87216c9f0ccc63c516263169085fa34bba25633f6d96c6a9b9ca1fd5f70a" +source = "git+https://github.com/async-email/async-imap?rev=d1f2606421c9211f992c1c565a32d8f770476aeb#d1f2606421c9211f992c1c565a32d8f770476aeb" dependencies = [ "async-channel 2.5.0", "async-compression", @@ -104,7 +103,6 @@ dependencies = [ "log", "nom", "pin-project", - "pin-utils", "self_cell", "stop-token", "thiserror 1.0.69", @@ -1697,12 +1695,6 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" -[[package]] -name = "pin-utils" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13bee6c73da26345c729282832b60b0363cf3dd9f4bfd81d8551b7a1c889a113" - [[package]] name = "pkg-config" version = "0.3.34" diff --git a/Cargo.toml b/Cargo.toml index a421b7fc3..52268a7a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,11 @@ resolver = "3" [patch.crates-io] tinybus = { path = "vendor/tinybus/crates/tinybus" } tinybus-module = { path = "vendor/tinybus/crates/tinybus-module" } +# async-imap 0.12.0 depends on pin-utils, which is unmaintained (RUSTSEC-2026-0441). +# Upstream replaced it with pin-project in d1f2606421, the only commit after the +# 0.12.0 release, so this is 0.12.0 with that one change. Drop this patch (and its +# deny.toml allow-git entry) once a release after 0.12.0 is published. +async-imap = { git = "https://github.com/async-email/async-imap", rev = "d1f2606421c9211f992c1c565a32d8f770476aeb" } # tinystoragedrivers names tinybus by git rev; point that source at the same # vendored checkout so the module and the storage client share one `Connection`. diff --git a/deny.toml b/deny.toml index 0f9c0796e..54aec0d7b 100644 --- a/deny.toml +++ b/deny.toml @@ -49,9 +49,11 @@ unknown-registry = "deny" unknown-git = "deny" allow-registry = ["https://github.com/rust-lang/crates.io-index"] # Storage/voice use canonical revisions; the attested TinyBus SDK is pinned -# to the coordinated migration PR until it lands upstream. +# to the coordinated migration PR until it lands upstream. async-imap is pinned +# to the upstream commit that drops pin-utils until its next release (Cargo.toml). allow-git = [ "https://github.com/tinyhumansai/tinystoragedrivers", "https://github.com/tinyhumansai/tinyvoice", "https://github.com/senamakel/tinybus", + "https://github.com/async-email/async-imap", ] From 8584cf982fbb0d42876f0ccfee9cd9095e3324b4 Mon Sep 17 00:00:00 2001 From: M3gA-Mind Date: Wed, 11 Nov 2026 17:15:55 +0530 Subject: [PATCH 2/3] Pin tinystoragedrivers v2.1.3 and take rusqlite 0.41 cargo-deny fails Supply chain and storage-boundary on main with RUSTSEC-2026-0459 (CVE-2026-119375): libsqlite3-sys 0.38.2 bundles SQLite older than 3.54. It arrives through tinychannels' own rusqlite 0.40 (the imessage feature) and through tinystoragedrivers-connect and -document. libsqlite3-sys is `links = "sqlite3"`, so both have to move together. - tinystoragedrivers: pin the official v2.1.3 release (f5a33025b9), which ships rusqlite 0.41.1 / libsqlite3-sys 0.39.1. - rusqlite 0.40 -> 0.41 for the imessage feature. rusqlite 0.41 needs Rust 1.89; this crate already declares 1.94. - rustix 1.1.6 and xattr 1.7.0, for RUSTSEC-2026-0486 (rustix 1.0-1.1.5 xattr functions unsound on a zero-length buffer). Nothing here calls those functions directly. Together with the async-imap patch this builds on (RUSTSEC-2026-0441), cargo deny check all is clean. --- Cargo.lock | 60 +++++++++++++-------------- Cargo.toml | 10 ++--- crates/tinychannels-module/Cargo.toml | 8 ++-- 3 files changed, 39 insertions(+), 39 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1f8fe641e..ab014fa00 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1488,9 +1488,9 @@ dependencies = [ [[package]] name = "libsqlite3-sys" -version = "0.38.2" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1d20bef17f513b9b3004532233187769cd072d790971f4e4da0e346eb6401e8" +checksum = "14a5f01b87b92705d07b433c06f96cbc764637d81a0bffb5734ce17cf0f9a2b3" dependencies = [ "cc", "pkg-config", @@ -2070,9 +2070,9 @@ dependencies = [ [[package]] name = "rusqlite" -version = "0.40.2" +version = "0.41.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23f2a97da3e3873c73cb2a2e71b35c40ff95e0b1eefa8d72d8499a6928c3b5b3" +checksum = "da9bba6f3506135e120a6586df05be18b48d18896600646a4bec8f993d91a594" dependencies = [ "bitflags", "fallible-iterator", @@ -2100,9 +2100,9 @@ dependencies = [ [[package]] name = "rustix" -version = "1.1.5" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" dependencies = [ "bitflags", "errno", @@ -2752,8 +2752,8 @@ dependencies = [ [[package]] name = "tinystoragedrivers-api" -version = "2.1.2" -source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=6226b9484c8bd01c58741718cd89ba90a13a36bb#6226b9484c8bd01c58741718cd89ba90a13a36bb" +version = "2.1.3" +source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=f5a33025b9feaa36fea522cce764fe8c796e5139#f5a33025b9feaa36fea522cce764fe8c796e5139" dependencies = [ "async-trait", "bytes", @@ -2766,8 +2766,8 @@ dependencies = [ [[package]] name = "tinystoragedrivers-blob" -version = "2.1.2" -source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=6226b9484c8bd01c58741718cd89ba90a13a36bb#6226b9484c8bd01c58741718cd89ba90a13a36bb" +version = "2.1.3" +source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=f5a33025b9feaa36fea522cce764fe8c796e5139#f5a33025b9feaa36fea522cce764fe8c796e5139" dependencies = [ "async-trait", "bytes", @@ -2780,8 +2780,8 @@ dependencies = [ [[package]] name = "tinystoragedrivers-bus" -version = "2.1.2" -source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=6226b9484c8bd01c58741718cd89ba90a13a36bb#6226b9484c8bd01c58741718cd89ba90a13a36bb" +version = "2.1.3" +source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=f5a33025b9feaa36fea522cce764fe8c796e5139#f5a33025b9feaa36fea522cce764fe8c796e5139" dependencies = [ "serde", "serde_json", @@ -2791,8 +2791,8 @@ dependencies = [ [[package]] name = "tinystoragedrivers-busproxy" -version = "2.1.2" -source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=6226b9484c8bd01c58741718cd89ba90a13a36bb#6226b9484c8bd01c58741718cd89ba90a13a36bb" +version = "2.1.3" +source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=f5a33025b9feaa36fea522cce764fe8c796e5139#f5a33025b9feaa36fea522cce764fe8c796e5139" dependencies = [ "async-trait", "bytes", @@ -2809,8 +2809,8 @@ dependencies = [ [[package]] name = "tinystoragedrivers-connect" -version = "2.1.2" -source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=6226b9484c8bd01c58741718cd89ba90a13a36bb#6226b9484c8bd01c58741718cd89ba90a13a36bb" +version = "2.1.3" +source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=f5a33025b9feaa36fea522cce764fe8c796e5139#f5a33025b9feaa36fea522cce764fe8c796e5139" dependencies = [ "rusqlite", "serde_json", @@ -2821,8 +2821,8 @@ dependencies = [ [[package]] name = "tinystoragedrivers-document" -version = "2.1.2" -source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=6226b9484c8bd01c58741718cd89ba90a13a36bb#6226b9484c8bd01c58741718cd89ba90a13a36bb" +version = "2.1.3" +source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=f5a33025b9feaa36fea522cce764fe8c796e5139#f5a33025b9feaa36fea522cce764fe8c796e5139" dependencies = [ "async-trait", "data-encoding", @@ -2839,8 +2839,8 @@ dependencies = [ [[package]] name = "tinystoragedrivers-kv" -version = "2.1.2" -source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=6226b9484c8bd01c58741718cd89ba90a13a36bb#6226b9484c8bd01c58741718cd89ba90a13a36bb" +version = "2.1.3" +source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=f5a33025b9feaa36fea522cce764fe8c796e5139#f5a33025b9feaa36fea522cce764fe8c796e5139" dependencies = [ "async-trait", "serde", @@ -2851,8 +2851,8 @@ dependencies = [ [[package]] name = "tinystoragedrivers-queue" -version = "2.1.2" -source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=6226b9484c8bd01c58741718cd89ba90a13a36bb#6226b9484c8bd01c58741718cd89ba90a13a36bb" +version = "2.1.3" +source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=f5a33025b9feaa36fea522cce764fe8c796e5139#f5a33025b9feaa36fea522cce764fe8c796e5139" dependencies = [ "async-trait", "data-encoding", @@ -2867,8 +2867,8 @@ dependencies = [ [[package]] name = "tinystoragedrivers-secrets" -version = "2.1.2" -source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=6226b9484c8bd01c58741718cd89ba90a13a36bb#6226b9484c8bd01c58741718cd89ba90a13a36bb" +version = "2.1.3" +source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=f5a33025b9feaa36fea522cce764fe8c796e5139#f5a33025b9feaa36fea522cce764fe8c796e5139" dependencies = [ "async-trait", "tinystoragedrivers-api", @@ -2878,8 +2878,8 @@ dependencies = [ [[package]] name = "tinystoragedrivers-testkit" -version = "2.1.2" -source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=6226b9484c8bd01c58741718cd89ba90a13a36bb#6226b9484c8bd01c58741718cd89ba90a13a36bb" +version = "2.1.3" +source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=f5a33025b9feaa36fea522cce764fe8c796e5139#f5a33025b9feaa36fea522cce764fe8c796e5139" dependencies = [ "async-trait", "bytes", @@ -2899,8 +2899,8 @@ dependencies = [ [[package]] name = "tinystoragedrivers-types" -version = "2.1.2" -source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=6226b9484c8bd01c58741718cd89ba90a13a36bb#6226b9484c8bd01c58741718cd89ba90a13a36bb" +version = "2.1.3" +source = "git+https://github.com/tinyhumansai/tinystoragedrivers?rev=f5a33025b9feaa36fea522cce764fe8c796e5139#f5a33025b9feaa36fea522cce764fe8c796e5139" dependencies = [ "serde", "serde_json", @@ -3894,9 +3894,9 @@ dependencies = [ [[package]] name = "xattr" -version = "1.6.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156" +checksum = "963d6fab92d5504b971dc8bd90ca743c2575e590bc8071ea5bc571598667ae08" dependencies = [ "libc", "rustix", diff --git a/Cargo.toml b/Cargo.toml index 52268a7a0..633ad68ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -116,8 +116,8 @@ tinychannels-bus = { path = "crates/tinychannels-bus", features = ["storage"] } tinychannels-runtime = { path = "crates/tinychannels-runtime" } # Storage ports only: no driver crate and no database client. The host (or the # bus client in the module crate) supplies the backend. -tinystoragedrivers-api = { git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "6226b9484c8bd01c58741718cd89ba90a13a36bb" } -tinystoragedrivers-types = { git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "6226b9484c8bd01c58741718cd89ba90a13a36bb" } +tinystoragedrivers-api = { git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "f5a33025b9feaa36fea522cce764fe8c796e5139" } +tinystoragedrivers-types = { git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "f5a33025b9feaa36fea522cce764fe8c796e5139" } anyhow = "1" async-trait = "0.1" base64 = "0.23" @@ -132,7 +132,7 @@ parking_lot = "0.12" prost = { version = "0.14", optional = true } rand = "0.10" reqwest = { version = "0.12", default-features = false, features = ["json", "multipart", "rustls-tls", "stream"] } -rusqlite = { version = "0.40", features = ["bundled"], optional = true } +rusqlite = { version = "0.41", features = ["bundled"], optional = true } rustls = { version = "0.23", default-features = false, features = ["ring", "std", "logging", "tls12"] } rustls-pki-types = "1.14.0" schemars = { version = "1", features = ["derive"] } @@ -179,5 +179,5 @@ tempfile = "3" toml = "1" wiremock = "0.6" tokio = { version = "1", default-features = false, features = ["rt-multi-thread", "test-util"] } -tinystoragedrivers-testkit = { git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "6226b9484c8bd01c58741718cd89ba90a13a36bb" } -tinystoragedrivers-document = { git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "6226b9484c8bd01c58741718cd89ba90a13a36bb" } +tinystoragedrivers-testkit = { git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "f5a33025b9feaa36fea522cce764fe8c796e5139" } +tinystoragedrivers-document = { git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "f5a33025b9feaa36fea522cce764fe8c796e5139" } diff --git a/crates/tinychannels-module/Cargo.toml b/crates/tinychannels-module/Cargo.toml index 5b55aae2a..515bf6164 100644 --- a/crates/tinychannels-module/Cargo.toml +++ b/crates/tinychannels-module/Cargo.toml @@ -34,9 +34,9 @@ tinybus-module = { version = "=0.3.12", git = "https://github.com/senamakel/tiny tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync", "time"] } # Storage over the bus: the module reaches host storage through the same port # traits a linked library gets, never through per-module persistence callbacks. -tinystoragedrivers-api = { git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "6226b9484c8bd01c58741718cd89ba90a13a36bb" } -tinystoragedrivers-types = { git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "6226b9484c8bd01c58741718cd89ba90a13a36bb" } -tinystoragedrivers-busproxy = { version = "2.1.2", git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "6226b9484c8bd01c58741718cd89ba90a13a36bb" } +tinystoragedrivers-api = { git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "f5a33025b9feaa36fea522cce764fe8c796e5139" } +tinystoragedrivers-types = { git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "f5a33025b9feaa36fea522cce764fe8c796e5139" } +tinystoragedrivers-busproxy = { version = "2.1.3", git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "f5a33025b9feaa36fea522cce764fe8c796e5139" } serde_json = "1" serde = { version = "1", features = ["derive"] } sha2 = "0.11" @@ -54,7 +54,7 @@ base64 = "0.23" tinychannels = { path = "../.." } tinychannels-conformance = { path = "../tinychannels-conformance" } tinybus = { workspace = true, features = ["test-support"] } -tinystoragedrivers-testkit = { git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "6226b9484c8bd01c58741718cd89ba90a13a36bb" } +tinystoragedrivers-testkit = { git = "https://github.com/tinyhumansai/tinystoragedrivers", rev = "f5a33025b9feaa36fea522cce764fe8c796e5139" } tempfile = "3" tokio = { version = "1", features = ["test-util"] } serde_json = "1" From 985d8dd0e029f41aeedd48a4d148bb8bfbbeb372 Mon Sep 17 00:00:00 2001 From: M3gA-Mind Date: Wed, 11 Nov 2026 18:14:01 +0530 Subject: [PATCH 3/3] Pin async-imap on the dependency, not through [patch] A [patch.crates-io] entry only applies when tinychannels is the workspace root. A workspace that depends on tinychannels resolves async-imap 0.12.0 from crates.io and gets the unmaintained pin-utils back (RUSTSEC-2026-0441). Put the upstream revision (d1f2606421: 0.12.0 plus the pin-utils to pin-project change) on the async-imap dependency itself, keeping its version, default-features and runtime-tokio settings, and drop the patch entry. The resolved lock is unchanged. A downstream crate depending on tinychannels with the email feature now locks async-imap at that revision and contains no pin-utils. --- Cargo.toml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 633ad68ec..f4b9ff24f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,11 +20,6 @@ resolver = "3" [patch.crates-io] tinybus = { path = "vendor/tinybus/crates/tinybus" } tinybus-module = { path = "vendor/tinybus/crates/tinybus-module" } -# async-imap 0.12.0 depends on pin-utils, which is unmaintained (RUSTSEC-2026-0441). -# Upstream replaced it with pin-project in d1f2606421, the only commit after the -# 0.12.0 release, so this is 0.12.0 with that one change. Drop this patch (and its -# deny.toml allow-git entry) once a release after 0.12.0 is published. -async-imap = { git = "https://github.com/async-email/async-imap", rev = "d1f2606421c9211f992c1c565a32d8f770476aeb" } # tinystoragedrivers names tinybus by git rev; point that source at the same # vendored checkout so the module and the storage client share one `Connection`. @@ -151,7 +146,13 @@ uuid = { version = "1", features = ["v4"] } webpki-roots = "1.0.6" # Email channel (SMTP + IMAP). -async-imap = { version = "0.12", default-features = false, features = ["runtime-tokio"], optional = true } +# async-imap 0.12.0 depends on pin-utils, which is unmaintained (RUSTSEC-2026-0441). +# Upstream replaced it with pin-project in d1f2606421, the only commit after the +# 0.12.0 release, so this is 0.12.0 with that one change. It is pinned here, on the +# dependency itself rather than a [patch], so workspaces that depend on +# tinychannels get it too. Return to the crates.io release (and drop the +# deny.toml allow-git entry) once a release after 0.12.0 is published. +async-imap = { version = "0.12", git = "https://github.com/async-email/async-imap", rev = "d1f2606421c9211f992c1c565a32d8f770476aeb", default-features = false, features = ["runtime-tokio"], optional = true } lettre = { version = "0.11.22", default-features = false, features = ["builder", "smtp-transport", "rustls-tls", "tokio1-rustls-tls"], optional = true } mail-parser = { version = "0.11.2", optional = true }