From 09d20b026789bf8d476378cf596a21015f0e939c Mon Sep 17 00:00:00 2001 From: carlo-deutschmann Date: Thu, 19 Nov 2026 12:53:00 +0100 Subject: [PATCH] fix(deps): replace unmaintained multipart with maintained fork multipart_ng multipart 0.18 is unmaintained (RUSTSEC-2023-0050) and was ignored in deny.toml. multipart_ng is a drop-in fork of multipart 0.18.0 with the same API; the dependency is renamed, so the AppSec code is unchanged. Remove the advisory ignore and regenerate LICENSE-3rdparty.csv. --- bottlecap/Cargo.lock | 16 ++++++++-------- bottlecap/Cargo.toml | 2 +- bottlecap/LICENSE-3rdparty.csv | 4 ++-- bottlecap/deny.toml | 1 - 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/bottlecap/Cargo.lock b/bottlecap/Cargo.lock index 9346e7ecf..c803fc2cf 100644 --- a/bottlecap/Cargo.lock +++ b/bottlecap/Cargo.lock @@ -505,7 +505,7 @@ dependencies = [ "libddwaf-sys", "mime", "mock_instant", - "multipart", + "multipart_ng", "nix 0.26.4", "opentelemetry-proto", "opentelemetry-semantic-conventions 0.30.0", @@ -546,10 +546,10 @@ dependencies = [ ] [[package]] -name = "buf_redux" -version = "0.8.4" +name = "buf_redux_ng" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b953a6887648bb07a535631f2bc00fbdb2a2216f135552cb3f534ed136b9c07f" +checksum = "9f3d7709133329ea7b6e9f48e423251eafd398391806686f713e52f17ca6ef19" dependencies = [ "memchr", "safemem", @@ -2591,12 +2591,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d87ecb2933e8aeadb3e3a02b828fed80a7528047e68b4f424523a0981a3a084" [[package]] -name = "multipart" -version = "0.18.0" +name = "multipart_ng" +version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00dec633863867f29cb39df64a397cdf4a6354708ddd7759f70c7fb51c5f9182" +checksum = "9be2246eb884185c3a396640492b883f30c30240a943d235df2691bee914f013" dependencies = [ - "buf_redux", + "buf_redux_ng", "httparse", "log", "mime", diff --git a/bottlecap/Cargo.toml b/bottlecap/Cargo.toml index f437d5ad4..af33d040b 100644 --- a/bottlecap/Cargo.toml +++ b/bottlecap/Cargo.toml @@ -29,7 +29,7 @@ http-body = { version = "1", default-features = false } http-body-util = { version = "0.1", default-features = false } itertools = { version = "0.14", default-features = false, features = ["use_std"] } mime = { version = "0.3", default-features = false } -multipart = { version = "0.18", default-features = false, features = ["server"] } +multipart = { package = "multipart_ng", version = "0.18.1", default-features = false, features = ["server"] } nix = { version = "0.26", default-features = false, features = ["feature", "fs"] } ordered_hash_map = { version = "0.4", default-features = false } regex = { version = "1.10", default-features = false } diff --git a/bottlecap/LICENSE-3rdparty.csv b/bottlecap/LICENSE-3rdparty.csv index 6682f5859..3645b1a59 100644 --- a/bottlecap/LICENSE-3rdparty.csv +++ b/bottlecap/LICENSE-3rdparty.csv @@ -17,7 +17,7 @@ base64,https://github.com/marshallpierce/rust-base64,MIT OR Apache-2.0,Marshall bitflags,https://github.com/bitflags/bitflags,MIT OR Apache-2.0,The Rust Project Developers block-buffer,https://github.com/RustCrypto/utils,MIT OR Apache-2.0,RustCrypto Developers borrow-or-share,https://github.com/yescallop/borrow-or-share,MIT-0,Scallop Ye -buf_redux,https://github.com/abonander/buf_redux,MIT OR Apache-2.0,Austin Bonander +buf_redux_ng,https://github.com/CarloTUM/buf_redux_ng,MIT OR Apache-2.0,"Austin Bonander , Carlo Deutschmann " bumpalo,https://github.com/fitzgen/bumpalo,MIT OR Apache-2.0,Nick Fitzgerald bytemuck,https://github.com/Lokathor/bytemuck,Zlib OR Apache-2.0 OR MIT,Lokathor byteorder,https://github.com/BurntSushi/byteorder,Unlicense OR MIT,Andrew Gallant @@ -155,7 +155,7 @@ mime,https://github.com/hyperium/mime,MIT OR Apache-2.0,Sean McArthur miniz_oxide,https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide,MIT OR Zlib OR Apache-2.0,"Frommi , oyvindln , Rich Geldreich richgel99@gmail.com" mio,https://github.com/tokio-rs/mio,MIT,"Carl Lerche , Thomas de Zeeuw , Tokio Contributors " -multipart,http://github.com/abonander/multipart,MIT OR Apache-2.0,Austin Bonander +multipart_ng,https://github.com/CarloTUM/multipart_ng,MIT OR Apache-2.0,"Austin Bonander , Carlo Deutschmann " nix,https://github.com/nix-rust/nix,MIT,The nix-rust Project Developers num-conv,https://github.com/jhpratt/num-conv,MIT OR Apache-2.0,Jacob Pratt num-traits,https://github.com/rust-num/num-traits,MIT OR Apache-2.0,The Rust Project Developers diff --git a/bottlecap/deny.toml b/bottlecap/deny.toml index 50261d94d..1b118864c 100644 --- a/bottlecap/deny.toml +++ b/bottlecap/deny.toml @@ -46,7 +46,6 @@ ignore = [ { id = "RUSTSEC-2026-0349", reason = "rustls fix needs aws-lc-rs >= 1.18 (AWS-LC-FIPS 4.x, uncertified)" }, { id = "RUSTSEC-2026-0382", reason = "rustls-webpki fix needs aws-lc-rs ^1.18 (AWS-LC-FIPS 4.x, uncertified)" }, { id = "RUSTSEC-2026-0410", reason = "wasm32 only; the extension ships on Linux" }, - { id = "RUSTSEC-2023-0050", reason = "multipart 0.18 is unmaintained; it parses AppSec multipart request bodies; no maintained replacement is chosen yet" }, { id = "RUSTSEC-2025-0134", reason = "rustls-pemfile is unmaintained; replace with rustls-pki-types PEM parsing (code change, not a version bump)" }, { id = "RUSTSEC-2026-0543", reason = "chrono is unmaintained with no patched release; replacing it requires migrating telemetry timestamps and AWS request signing" }, { id = "RUSTSEC-2026-0386", reason = "tokio AsyncFd unsoundness; bottlecap does not construct AsyncFd. Fix: cargo update -p tokio (>= 1.53.3)" },