AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
deps: bump candle to 0.11.1 to drop zip 7.2.0 (RUSTSEC-2026-0429) (#2881)
xerj-org13120d1655c4
diff --git a/engine/.cargo/audit.toml b/engine/.cargo/audit.tomlindex 33ace8a50..24bdaf561 100644--- a/engine/.cargo/audit.toml+++ b/engine/.cargo/audit.toml@@ -6,29 +6,6 @@[advisories]ignore = [- # zip < 9.0.0 — RUSTSEC-2026-0367 (SUID/SGID bits preserved on extract),- # RUSTSEC-2026-0368 (extract creates symlinks pointing outside the dest dir),- # RUSTSEC-2026-0369 (extract applies Unix permissions through symlinks).- #- # Every zip we depend on directly or through autoindex (calamine 0.37,- # office_oxide 0.1.15, xerj-autoindex itself) is on the fixed zip 9.x line.- # The only remaining vulnerable copy is zip 7.2.0, pulled in by- # candle-core 0.9.2 (optional `neural` / `decide-local` features of- # xerj-ai). No candle-core release depends on zip >= 9 (latest 0.11.0 still- # requires zip ^8.6), so it cannot be upgraded yet.- #- # Not reachable: all three advisories are in `ZipArchive::extract` /- # `ZipStreamReader::extract` (writing archive entries to disk). candle-core- # only opens .npz/.pth files with `ZipArchive::new` and reads named entries- # into memory (src/npy.rs, src/pickle.rs); it never calls `extract`. XERJ- # itself only loads `model.safetensors` through candle (xerj-ai- # neural.rs), so even those zip readers are not on any code path we use.- #- # Remove these three entries when candle-core ships with zip >= 9.0.0.- "RUSTSEC-2026-0367",- "RUSTSEC-2026-0368",- "RUSTSEC-2026-0369",-# webpki-roots 0.26.x — RUSTSEC-2026-0381 (bundled emSign ECC Root CA - G3# lets paths through distrusted emSign intermediates; fixed in >= 1.0.10).#diff --git a/engine/Cargo.lock b/engine/Cargo.lockindex 5d6126d8e..8c90a5ae5 100644--- a/engine/Cargo.lock+++ b/engine/Cargo.lock@@ -969,37 +969,41 @@ dependencies = ["log","quick-xml 0.42.0","serde",- "zip 9.1.3",+ "zip",][[package]]name = "candle-core"-version = "0.9.2"+version = "0.11.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c15b675b80d994b2eadb20a4bbe434eabeb454eac3ee5e2b4cf6f147ee9be091"+checksum = "d11c8be87cfbaef9ebb62fb3f850d1fc8e00cc1d11d393fdbe55a4d5c2cdb325"dependencies = ["byteorder","float8","gemm","half",+ "libc","libm","memmap2","num-traits","num_cpus",+ "parking_lot","rand 0.9.4","rand_distr","rayon","safetensors","thiserror 2.0.18",+ "tokenizers 0.23.2","yoke",- "zip 7.2.0",+ "zerocopy",+ "zip",][[package]]name = "candle-nn"-version = "0.9.2"+version = "0.11.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3045fa9e7aef8567d209a27d56b692f60b96f4d0569f4c3011f8ca6715c65e03"+checksum = "437fabe77547c2447c7bdf3cc946e19db29a2832440176b419f77c80b0a9a05e"dependencies = ["candle-core","half",@@ -1013,14 +1017,14 @@ dependencies = [[[package]]name = "candle-transformers"-version = "0.9.2"+version = "0.11.1"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b538ec4aa807c416a2ddd3621044888f188827862e2a6fcacba4738e89795d01"+checksum = "2b1e1abeac23d7df4f94e8a3852b3dbb661d332e37c3bef479507bac867187b2"dependencies = ["byteorder","candle-core","candle-nn",- "fancy-regex 0.17.0",+ "fancy-regex 0.19.2","num-traits","rand 0.9.4","rayon",@@ -1531,6 +1535,12 @@ dependencies = ["cmov",]+[[package]]+name = "daachorse"+version = "3.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5614204febbc33cc07a2806aa6440b904ac012b68eecc37f4493ea4a76455a3d"+[[package]]name = "darling"version = "0.20.11"@@ -1922,6 +1932,17 @@ dependencies = ["regex-syntax",]+[[package]]+name = "fancy-regex"+version = "0.19.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d301f5bf187b3c295fce6468d3875037a0bccc5f6b151c63cac2f85babf21912"+dependencies = [+ "bit-set",+ "regex-automata",+ "regex-syntax",+]+[[package]]name = "fast-float2"version = "0.2.3"@@ -2017,9 +2038,9 @@ dependencies = [[[package]]name = "float8"-version = "0.6.1"+version = "0.7.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "719a903cc23e4a89e87962c2a80fdb45cdaad0983a89bd150bb57b4c8571a7d5"+checksum = "c2d1f04709a8ac06e8e8042875a3c466cc4832d3c1a18dbcb9dba3c6e83046bc"dependencies = ["half","num-traits",@@ -3719,7 +3740,7 @@ dependencies = ["serde","serde_json","thiserror 2.0.18",- "zip 9.1.3",+ "zip",][[package]]@@ -4779,9 +4800,9 @@ dependencies = [[[package]]name = "regex-automata"-version = "0.4.14"+version = "0.4.18"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"+checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"dependencies = ["aho-corasick","memchr",@@ -5015,13 +5036,15 @@ checksum = "04d056b875a9d2e6cb9a61d127afee9ac5999b9f87bcb32079d1318e505be714"[[package]]name = "safetensors"-version = "0.7.0"+version = "0.8.0"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "675656c1eabb620b921efea4f9199f97fc86e36dd6ffd1fbbe48d0f59a4987f5"+checksum = "79b079b829cb27a1c3c374341345ed2e8b2c0c839034522cee576c140bd7f846"dependencies = ["hashbrown 0.16.1",+ "libc","serde","serde_json",+ "tempfile",][[package]]@@ -5753,6 +5776,39 @@ dependencies = ["unicode_categories",]+[[package]]+name = "tokenizers"+version = "0.23.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7afbf6e88718afcc138bad01d6ccc3051dbbc3b2ce9793d8b8a3aeb610969cfc"+dependencies = [+ "ahash",+ "compact_str",+ "daachorse",+ "dary_heap",+ "derive_builder",+ "esaxx-rs",+ "fancy-regex 0.17.0",+ "getrandom 0.3.4",+ "itertools 0.14.0",+ "log",+ "macro_rules_attribute",+ "monostate",+ "paste",+ "rand 0.9.4",+ "rayon",+ "rayon-cond",+ "regex",+ "regex-syntax",+ "serde",+ "serde_json",+ "spm_precompiled",+ "thiserror 2.0.18",+ "unicode-normalization-alignments",+ "unicode-segmentation",+ "unicode_categories",+]+[[package]]name = "tokio"version = "1.52.0"@@ -6461,12 +6517,6 @@ version = "2.1.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9ea3136b675547379c4bd395ca6b938e5ad3c3d20fad76e7fe85f9e0d011419c"-[[package]]-name = "typed-path"-version = "0.12.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8e28f89b80c87b8fb0cf04ab448d5dd0dd0ade2f8891bae878de66a75a28600e"-[[package]]name = "typed-path"version = "0.13.0"@@ -7366,7 +7416,7 @@ dependencies = ["sha2 0.10.9","tempfile","thiserror 2.0.18",- "tokenizers",+ "tokenizers 0.21.4","tokio","tracing","xerj-common",@@ -7489,7 +7539,7 @@ dependencies = ["xerj-common","xerj-wasm","xxhash-rust",- "zip 9.1.3",+ "zip","zstd",]@@ -8013,18 +8063,6 @@ dependencies = ["syn",]-[[package]]-name = "zip"-version = "7.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c42e33efc22a0650c311c2ef19115ce232583abbe80850bc8b66509ebef02de0"-dependencies = [- "crc32fast",- "indexmap 2.14.0",- "memchr",- "typed-path 0.12.3",-]-[[package]]name = "zip"version = "9.1.3"@@ -8037,7 +8075,7 @@ dependencies = ["indexmap 2.14.0","memchr","nix 0.31.3",- "typed-path 0.13.0",+ "typed-path","windows-sys 0.61.2","zopfli",]diff --git a/engine/crates/xerj-ai/Cargo.toml b/engine/crates/xerj-ai/Cargo.tomlindex 60191a0d0..9880cde0a 100644--- a/engine/crates/xerj-ai/Cargo.toml+++ b/engine/crates/xerj-ai/Cargo.toml@@ -23,9 +23,11 @@ futures-util = "0.3"# Feature-gated so the default build stays dependency-light and the# lexical embedder remains the zero-dep fallback. When `neural` is off,# none of this compiles.-candle-core = { version = "0.9", optional = true }-candle-nn = { version = "0.9", optional = true }-candle-transformers = { version = "0.9", optional = true }+# candle >= 0.11.1: the first line on zip ^9 (0.9.x-0.11.0 pull zip 7/8,+# RUSTSEC-2026-0367/0368/0369/0429, all fixed in zip 9.0.0).+candle-core = { version = "0.11.1", optional = true }+candle-nn = { version = "0.11.1", optional = true }+candle-transformers = { version = "0.11.1", optional = true }tokenizers = { version = "0.21", optional = true, default-features = false, features = ["fancy-regex"] }# `ureq` (sync, blocking) pulls rustls by default — pure-Rust TLS, no OpenSSL,# so the neural feature cross-compiles cleanly to musl/aarch64/windows.