From 8ddb115379b73ed9ddfb2e72457debbf44faa2fe Mon Sep 17 00:00:00 2001 From: CI Test Date: Sat, 28 Nov 2026 08:11:25 +0000 Subject: [PATCH] deps: clear residual advisories (eggup 0.2.2/zip 9, url 2.5.9, wnaf 0.14.1) - `eggup-archive`/`eggup-core` 0.1.2 -> 0.2.2 pulls `zip 9.9.0`, the fixed line for RUSTSEC-2026-0367/-0368/-0369/-0429/-0545/-0547/-0548. The seven `zip` entries in `deny.toml` are deleted under the removal condition they carried (adopt an `eggup-archive` release depending on `zip >= 9`); no `zip` exception remains. `arbitrary`/`derive_arbitrary` leave the graph because only `zip 6` needed them. - `url` 2.5.4 -> 2.5.9 clears RUSTSEC-2026-0592 (stack overflow in `Url::origin()` on nested `blob:` URLs), published after the last advisory sweep and therefore not in the tracked set. `eggress-python` only calls `Url::parse`, so the vulnerable path was unreachable, but the pin is now on the patched release rather than on reachability. - `wnaf` 0.14.0 -> 0.14.1 replaces a yanked release in the lockfile. `zip` 9 changed `FileOptions` to a single lifetime, so the updater test archive helper uses `SimpleFileOptions` instead of annotating `FileOptions<'_, ()>`. Verified: `cargo fmt --all -- --check`, `cargo clippy --workspace --all-targets -D warnings`, `cargo test --workspace --locked`, `cargo deny --workspace check` (advisories/bans/licenses/sources ok), `cargo audit` (chrono exception only), the updater and release-contract suites, the CLI/embed/outbound feature slices, and the Python suite (2311 passed). --- Cargo.lock | 115 ++++++++++++++++--------- crates/eggress-cli/Cargo.toml | 6 +- crates/eggress-cli/src/update/eggup.rs | 2 +- crates/eggress-python/Cargo.toml | 2 +- deny.toml | 43 ++------- 5 files changed, 83 insertions(+), 85 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 269ba7d2..43e4c8ca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -163,15 +163,6 @@ dependencies = [ "windows-sys 0.61.2", ] -[[package]] -name = "arbitrary" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1" -dependencies = [ - "derive_arbitrary", -] - [[package]] name = "arc-swap" version = "1.9.1" @@ -576,6 +567,15 @@ version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c" +[[package]] +name = "constant_time_eq" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "144e7f1de087984240b7816d47f698b414979faa6f40839c5b86d6bd47db57b7" +dependencies = [ + "rustversion", +] + [[package]] name = "core-foundation" version = "0.10.1" @@ -843,17 +843,6 @@ dependencies = [ "powerfmt", ] -[[package]] -name = "derive_arbitrary" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e567bd82dcff979e4b03460c307b3cdc9e96fde3d73bed1496d2bc75d9dd62a" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "des" version = "0.8.1" @@ -1568,9 +1557,9 @@ dependencies = [ [[package]] name = "eggup-archive" -version = "0.1.2" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "758e9564359dd9fdf9a7ee4fab04f049986ff058564c5793664f51085b1c8292" +checksum = "67ab697e3af41b3cd3d1ed140f821c68739ec446d2a7782fa26ca4960edc882b" dependencies = [ "flate2", "fs_at", @@ -1581,10 +1570,11 @@ dependencies = [ [[package]] name = "eggup-core" -version = "0.1.2" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f44129c6433d2989ee38e250c55744bddd17c93464e13ed7298fc25229cc8e6" +checksum = "a0b0dba6035ec7d403ddf0298f1021a5bd544764f9bb4e3011cb31b2dacd614b" dependencies = [ + "self-replace", "sha2 0.10.9", ] @@ -1641,7 +1631,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -1721,9 +1711,9 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -2160,9 +2150,9 @@ dependencies = [ [[package]] name = "idna" -version = "1.0.3" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" dependencies = [ "idna_adapter", "smallvec", @@ -2232,7 +2222,7 @@ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46" dependencies = [ "hermit-abi", "libc", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -3060,7 +3050,7 @@ dependencies = [ "once_cell", "socket2 0.6.4", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -3414,7 +3404,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -3471,7 +3461,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -3592,6 +3582,17 @@ dependencies = [ "libc", ] +[[package]] +name = "self-replace" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "609c5606d9d357b26e4ee1a7a01beac396628d0fa01ebbade2a09cefb88e65af" +dependencies = [ + "fastrand", + "tempfile", + "windows-sys 0.61.2", +] + [[package]] name = "semver" version = "1.0.28" @@ -3941,10 +3942,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.3.4", + "getrandom 0.4.3", "once_cell", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -4254,6 +4255,12 @@ dependencies = [ "utf-8", ] +[[package]] +name = "typed-path" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ce898823d8cd0f028662d2f349694b1af0a5cc9be83f1d213a00d3147445e1e" + [[package]] name = "typenum" version = "1.20.1" @@ -4321,13 +4328,14 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.4" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", "percent-encoding", + "serde", ] [[package]] @@ -4502,7 +4510,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -4714,13 +4722,14 @@ checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" [[package]] name = "wnaf" -version = "0.14.0" +version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab12e7090f27e2ffd9322651492942d50c2926094af30601e1964337db39daf1" +checksum = "795ca18b3fdb5e62bf982199278341ddcf7ebf7d32e25e212ad05d496e95f6fa" dependencies = [ "ff", "group", "hybrid-array", + "primefield", ] [[package]] @@ -4757,18 +4766,38 @@ name = "zeroize" version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] [[package]] name = "zip" -version = "6.0.0" +version = "9.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb2a05c7c36fde6c09b08576c9f7fb4cda705990f73b58fe011abf7dfb24168b" +checksum = "07db37dec4a7c468df4723fba4cadb4822d1d0f10dbea367100b6a6881b2a9c9" dependencies = [ - "arbitrary", + "constant_time_eq", "crc32fast", "flate2", + "getrandom 0.4.3", "indexmap", + "libc", "memchr", + "nix 0.31.3", + "typed-path", + "windows-sys 0.61.2", + "zeroize", ] [[package]] diff --git a/crates/eggress-cli/Cargo.toml b/crates/eggress-cli/Cargo.toml index 42cbc919..c5acf3f6 100644 --- a/crates/eggress-cli/Cargo.toml +++ b/crates/eggress-cli/Cargo.toml @@ -50,8 +50,8 @@ path = "src/pproxy_main.rs" required-features = ["pproxy-compat"] [dependencies] -eggup-archive = "=0.1.2" -eggup-core = "=0.1.2" +eggup-archive = "=0.2.2" +eggup-core = "=0.2.2" eggress-admin.workspace = true eggress-core.workspace = true eggress-server.workspace = true @@ -96,7 +96,7 @@ rustls.workspace = true tar = { version = "0.4", default-features = false } tokio-rustls.workspace = true toml.workspace = true -zip = { version = "6", default-features = false, features = ["deflate-flate2"] } +zip = { version = "9", default-features = false, features = ["deflate-flate2"] } [lints] workspace = true diff --git a/crates/eggress-cli/src/update/eggup.rs b/crates/eggress-cli/src/update/eggup.rs index 8e62506b..ba27a36d 100644 --- a/crates/eggress-cli/src/update/eggup.rs +++ b/crates/eggress-cli/src/update/eggup.rs @@ -447,7 +447,7 @@ mod tests { let mut bytes = Vec::new(); { let mut zip = zip::ZipWriter::new(std::io::Cursor::new(&mut bytes)); - let options: zip::write::FileOptions<'_, ()> = zip::write::FileOptions::default() + let options = zip::write::SimpleFileOptions::default() .compression_method(zip::CompressionMethod::Stored); for (name, data) in entries { zip.start_file(*name, options).unwrap(); diff --git a/crates/eggress-python/Cargo.toml b/crates/eggress-python/Cargo.toml index 9cdf9092..3fe90600 100644 --- a/crates/eggress-python/Cargo.toml +++ b/crates/eggress-python/Cargo.toml @@ -29,7 +29,7 @@ tokio = { workspace = true } tracing-subscriber = { workspace = true } serde_json = "1" toml = "0.8" -url = "=2.5.4" +url = "=2.5.9" [features] default = [] diff --git a/deny.toml b/deny.toml index 8530fa9a..b8bf2a40 100644 --- a/deny.toml +++ b/deny.toml @@ -17,44 +17,13 @@ all-features = true [advisories] ignore = [ - # Upstream-blocked `zip 6.0.0` (Delivery M004 / Security S5). + # The seven `zip` entries tracked here through 2026-11-17 (RUSTSEC-2026- + # 0367, -0368, -0369, -0429, -0545, -0547, -0548) were deleted on + # 2026-11-28 under the removal condition they carried: `eggup-archive` + # now resolves to 0.2.2, which depends on `zip 9.9.0`. That is the fixed + # line for every one of those advisories, so no `zip` exception remains + # and none should be reintroduced. # - # Path: root `eggress-cli` -> `eggup-archive 0.1.2` (and 0.2.0) -> - # `zip = "6.0.0"`. `eggup-archive` also carries the `zip` crate for its - # bounded Windows `.zip` extractor, so a lockfile update alone cannot - # remove it, and the direct `zip` dependency in `eggress-cli` is - # dev-only (test archive fixtures). - # - # Why the interim risk is acceptable: Eggup's extractor never calls - # `ZipArchive::extract`/`ZipStreamReader::extract` (the APIs named by - # these advisories). It walks entries itself, rejects symlinks, non-file - # entries, `enclosed_name() == None`, and `..`/absolute paths, and reads - # members through object-bound handles under finite size limits. Eggress - # additionally verifies the whole archive SHA-256 before extraction. - # - # Advisories published after the gate landed (2026-11-17) are covered by - # the same upstream block and are not reachable through Eggup's feature - # set: `eggup-archive` disables `zip` defaults and enables only - # `deflate-flate2`, so the `aes-crypto` path (-0545) is not compiled; it - # never uses `ZipStreamReader` (-0548); and the -0547 legacy decoders are - # outside the supported release-asset entry set, with the archive - # SHA-256-verified before extraction and members read under finite - # per-member/total limits. - # - # Removal condition: delete every `zip` entry here (do not carry them - # forward) as soon as an `eggup-archive` release depending on - # `zip >= 9.0.0` is adopted. - # - # Owner: Delivery M004. Reviewed 2026-11-16, extended 2026-11-17. - # Re-review by 2027-05-01 even if no upstream release has landed; do not - # renew silently. - "RUSTSEC-2026-0367", - "RUSTSEC-2026-0368", - "RUSTSEC-2026-0369", - "RUSTSEC-2026-0429", - "RUSTSEC-2026-0545", - "RUSTSEC-2026-0547", - "RUSTSEC-2026-0548", # `chrono` is unmaintained (RUSTSEC-2026-0543), not a vulnerability. It is # pulled unconditionally by `russh-util 0.52.0` -> `russh 0.65.2`, which # is the latest published `russh` line and the fixed line for the SSH