fix(deps): move zip to 9.5.1

Merged
MO
9d ago
+63-10

Moves zip from 8.6.0 to 9.5.1. Five advisories affect every 8.x release, and anydoc opens caller-supplied archives through zip::ZipArchive (src/package/archive.rs):

  • CVE-2026-115905 / GHSA-m665-v7pm-7grj (critical), first patched in 9.0.5.
  • CVE-2026-115907 / GHSA-9hj8-73fh-9963, CVE-2026-115908 / GHSA-hjqx-j4rw-g7xv and CVE-2026-115909 / GHSA-q7v9-x93c-xqv3 (high), first patched in 9.0.0.
  • CVE-2026-115906 / GHSA-8hxf-qr8p-62x4 (moderate), first patched in 9.0.0.

Closes #212. #194 and #213 proposed the same move to 9.0.3 and 9.1.3; this sets the requirement at 9.5.1, so no affected version satisfies it (the floor asked for in #194).

Changes

  • Cargo.toml and fuzz/Cargo.toml: zip = "9.5.1", with the same default-features = false, features = ["deflate"].
  • Cargo.lock (cargo update -p zip): zip 8.6.0 → 9.5.1 and typed-path 0.12.3 → 0.13.0, plus new entries zip 9 brings in (cfg_aliases, constant_time_eq, nix, zeroize, zeroize_derive).
  • No source changes for zip. The ZipArchive, ZipWriter and SimpleFileOptions calls compile unchanged, and zip 9.5.1 keeps the 1.88 MSRV.
  • src/model/table.rs (separate commit): the span clamp in TableBuilder walks rows and slots with iter_mut().enumerate() instead of indexing them. Clippy on Rust 1.100 reports the indexed loops as needless_range_loop, which fails the Rust and Wasm jobs on any branch under -D warnings. Behavior is unchanged.

Checks
On Rust 1.100: cargo fmt --all --check, cargo clippy --workspace --all-targets --all-features -- -D warnings, cargo clippy -p anydoc-wasm --target wasm32-unknown-unknown -- -D warnings and cargo test --locked (298 passed) all pass locally.

Release
Crates that depend on both anydoc and zip keep zip 8.6.0 in their lockfiles until a published anydoc carries this, because 0.2.4 requires zip ^8.6.0. A patch release after this merges lets them drop it.

Open in Capy