fix(deps): zip 9 and tantivy 0.27 (zstd 0.14), drop seven audit ignores
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 22m26s

zip 2.4.2 carried RUSTSEC-2026-0367/0368/0369 and both zip and tantivy
0.25 pinned zstd ^0.13 (RUSTSEC-2026-0391/0398/0403/0410, two of them
accepted knowingly until this bump). Backlog t47.

- zip 9.1.2: ZipFile::name() and file_names() now return a ZipResult.
  The PLC SBOM reader skips an entry whose name does not decode, like an
  unreadable one; the evidence-pack test unwraps.
- tantivy 0.27: TopDocs is ordered explicitly (order_by_score()).
- zstd 0.14.3, zstd-safe 8.2.0, zstd-sys 2.1.2: one version each.
- .cargo/audit.toml: the three zip and four zstd ignores are gone;
  cargo audit passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-10-29 20:08:47 +01:00
1 parent 330d492578
commit 031cc3c098
7 files changed
+479 -339

No files matched your search

-26
View File
@@ -1,16 +1,5 @@
[advisories]
ignore = [
# zip 2.4.2 — RUSTSEC-2026-0367/0368/0369 (published 2026-10): SUID/SGID
# bits, symlink targets and permissions applied through symlinks, all in
# ZipArchive::extract() / ZipStreamReader::extract(). We never call
# those: ingest/archive.rs walks the entries itself, skips any path that
# enclosed_name() rejects, and writes file contents only — no symlinks,
# no Unix modes. The fix is zip >= 9.0.0, a major jump from our "2".
# FOLLOW-UP: bump zip to 9.x in its own PR (backlog), then drop these.
"RUSTSEC-2026-0367",
"RUSTSEC-2026-0368",
"RUSTSEC-2026-0369",
# hickory-proto 0.25.x pulled in transitively via mongodb → hickory-resolver.
# MongoDB 3.x has not yet released with hickory-resolver 0.26.x, so we cannot
# upgrade past this without a mongodb release. Both are DNS-layer DoS vectors
@@ -31,19 +20,4 @@ ignore = [
# FOLLOW-UP: bump rmcp to 2.x in a dedicated PR (M7.3 follow-up, sized
# multi-hour due to API surface change).
"RUSTSEC-2026-0189",
# zstd 0.13.3 / zstd-safe 7.2.4 / zstd-sys 2.0.16 (published 2026-10-16).
# Fixed in zstd >= 0.14.3 / zstd-safe >= 8.2.0 / zstd-sys >= 2.1.2, but
# both users pin zstd ^0.13: tantivy 0.25 (tantivy-sstable) and zip 2.4.2.
# FOLLOW-UP (backlog t47): zip 9.x + a tantivy on zstd 0.14, then drop these.
"RUSTSEC-2026-0410", # zstd-sys: the WebAssembly allocator shim; we build native only
"RUSTSEC-2026-0398", # zstd-safe: Seekable::decompress; we never use the seekable format
# zstd: a reused (de)compression context leaks data of an abandoned stream
# into the next one. Whether tantivy or zip reuse a context across inputs
# is not checked; accepted knowingly (owner decision 2026-10-28) until the bump.
"RUSTSEC-2026-0391",
# zstd-safe: uninitialized memory when streaming decompression of a legacy
# frame fails. Reachable in principle: zip decodes zstd entries of uploaded
# archives. Accepted knowingly (owner decision 2026-10-28) until the bump.
"RUSTSEC-2026-0403",
]
Generated
+467 -308
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -33,7 +33,7 @@ hex = "0.4"
uuid = { version = "1", features = ["v4", "v5", "serde"] }
secrecy = { version = "0.10", features = ["serde"] }
regex = "1"
zip = { version = "2", features = ["aes-crypto", "deflate"] }
zip = { version = "9", features = ["aes-crypto", "deflate"] }
# Uploaded tar and tar.gz source archives (ingest).
tar = "0.4"
flate2 = "1"
+4 -1
View File
@@ -531,7 +531,10 @@ mod tests {
let (zip_bytes, listed) = build_pack(&inputs(), Utc::now()).expect("pack");
let mut archive =
zip::ZipArchive::new(std::io::Cursor::new(zip_bytes)).expect("a valid zip");
let mut names: Vec<String> = archive.file_names().map(String::from).collect();
let mut names: Vec<String> = archive
.file_names()
.map(|n| n.expect("a UTF-8 entry name").into_owned())
.collect();
names.sort();
assert_eq!(
names,
+5 -1
View File
@@ -96,9 +96,13 @@ pub fn projectarchive_sbom(archive: &Path, repo_id: &str) -> Vec<SbomEntry> {
let Ok(entry) = zip.by_index_raw(i) else {
continue;
};
// zip 9: a name that does not decode is skipped like an unreadable entry.
let Ok(entry_name) = entry.name() else {
continue;
};
// Entry paths use `\` (Windows-authored) and/or `/` separators; the
// component id is one path segment.
for seg in entry.name().split(['/', '\\']) {
for seg in entry_name.split(['/', '\\']) {
if let Some((name, version)) = parse_library(seg).or_else(|| parse_runtime(seg)) {
if seen.insert((name.clone(), version.clone())) {
let mut e = SbomEntry::new(
+1 -1
View File
@@ -25,7 +25,7 @@ tree-sitter-typescript = "0.23"
petgraph = "0.7"
# Text search
tantivy = "0.25"
tantivy = "0.27"
# Serialization
bson = { version = "2", features = ["chrono-0_4"] }
+1 -1
View File
@@ -99,7 +99,7 @@ impl SymbolIndex {
.map_err(|e| CoreError::Graph(format!("Failed to parse query: {e}")))?;
let top_docs = searcher
.search(&query, &TopDocs::with_limit(limit))
.search(&query, &TopDocs::with_limit(limit).order_by_score())
.map_err(|e| CoreError::Graph(format!("Search failed: {e}")))?;
let mut results = Vec::new();