Skip to content

fix(deps): clear RUSTSEC-2026-0486 (rustix) and RUSTSEC-2026-0386 (tokio); make postgres audit blocking - #1506

Open
nicholas-ruest wants to merge 3 commits into
ruvnet:mainfrom
nicholas-ruest:fix/1487-xattr-rustsec-2026-0486
Open

nicholas-ruest wants to merge 3 commits into
ruvnet:mainfrom
nicholas-ruest:fix/1487-xattr-rustsec-2026-0486

Conversation

@nicholas-ruest

Copy link
Copy Markdown

Fixes #1487.

Root cause

cargo deny in supply-chain.yml failed on main with RUSTSEC-2026-0486. The advisory is filed against rustix (affected >=1.0.0, <1.1.6). Its title mentions "xattr functions", which is why the issue names xattr, but xattr 1.6.1 itself is unaffected and unchanged.

Changes

  • Root Cargo.lock: rustix 1.1.4 → 1.1.6. Only the rustix entry changes, because a plain cargo update -p rustix also churned unrelated windows-sys edges.
  • crates/ruvector-postgres/Cargo.lock: the same rustix bump, for the blocking rustsec/audit-check in postgres-extension-ci.yml. It also bumps tokio 1.53.1 → 1.54.1 (RUSTSEC-2026-0386, AsyncFd I/O safety) and syncs the path dep ruvector-sona to 0.2.5. Without that sync, cargo metadata --locked already failed.
  • 16 standalone lockfiles (examples, edge, crates/{ruvix,rvf,…}): rustix → 1.1.6. No lockfile in the repo now pins an affected rustix.
  • 11 more standalone lockfiles: tokio → 1.54.1 for RUSTSEC-2026-0386. In 5 of them this also brings stale in-repo path deps up to their current versions, so edge and examples/ruvLLM pass cargo metadata --locked again.
  • ruvector-postgres-ci.yml: removes || true from cargo audit, so the security job can actually fail. The exact command exits 0 with these bumps (3 allowed "unmaintained" warnings only).
  • Separate commit chore(claude): ruflo hook helpers 3.34.0 → 3.77.1. It is unrelated to the fix and isolated so it can be dropped.

Verification (local)

  • cargo deny check → advisories ok, bans ok, licenses ok, sources ok
  • cargo audit (root) exits 0. cargo audit --ignore RUSTSEC-2020-0071 in crates/ruvector-postgres exits 0.
  • Regression check: with the root fix reverted, cargo deny flags RUSTSEC-2026-0486 again.
  • rustix 1.1.6's requirements (bitflags >= 2.9.2, libc >= 0.2.182, windows-sys >=0.52,<0.62) are met in every lockfile. Checksum verified against crates.io.
  • cargo metadata --locked is ok in every touched workspace. cargo tree --locked -i rustix is ok for linux-gnu and windows-msvc.
  • cargo test --locked -p ruvector-weaver -p ruvector-context: 111 passed. cargo check --locked is ok in crates/ruvix and crates/rvforge-reader.

Known limitation

examples/rvf keeps tokio 1.49.0: its ruqu-algorithms path dep fails to load (a pre-existing problem), so cargo cannot re-resolve that lockfile. No CI gate scans it.

🤖 Generated with claude-flow

Nicholas Ruest and others added 3 commits November 13, 2026 22:21
RUSTSEC-2026-0486 is filed against rustix (affected >=1.0.0, <1.1.6),
although its title mentions "xattr functions", so the issue title points
at xattr. xattr 1.6.1 itself is unchanged.

- Cargo.lock: rustix 1.1.4 -> 1.1.6 (only the rustix entry; a plain
  `cargo update -p rustix` also churned unrelated windows-sys edges).
- crates/ruvector-postgres/Cargo.lock: rustix 1.1.4 -> 1.1.6 for the
  blocking rustsec/audit-check in postgres-extension-ci.yml. Also syncs
  the path dep ruvector-sona 0.2.4 -> 0.2.5 to match crates/sona/Cargo.toml,
  without which `cargo metadata --locked` fails in that workspace.

Verified: `cargo deny check` -> advisories ok, bans ok, licenses ok,
sources ok; `cargo audit` in crates/ruvector-postgres clean of 0486;
`cargo metadata --locked` ok in both workspaces; cargo tree --locked ok
for linux-gnu and windows-msvc targets; ruvector-weaver and
ruvector-context tests pass.

Fixes ruvnet#1487

Co-Authored-By: claude-flow <ruv@ruv.net>
…ake postgres audit blocking

Follow-up to the root rustix bump for ruvnet#1487.

rustix (RUSTSEC-2026-0486, affected >=1.0.0 <1.1.6):
- Bump the rustix 1.1.x entry to 1.1.6 in the 16 standalone lockfiles
  that still pinned 1.1.3/1.1.4 (crates/{ruos-thermal,ruvector-hyperbolic-hnsw,
  ruvix,rvf}, edge, and 11 under examples/). rustix 0.38.x entries are
  unaffected and unchanged. rustix 1.1.6 raises its floors to
  bitflags >= 2.9.2 and libc >= 0.2.182; every lockfile already satisfied
  them. No lockfile in the repo now pins an affected rustix.

tokio (RUSTSEC-2026-0386, AsyncFd I/O safety, unsound; patched >=1.53.3):
- tokio 1.53.1 -> 1.54.1 (the root workspace's version) in
  crates/ruvector-postgres and 11 standalone lockfiles via
  `cargo update -p tokio --precise 1.54.1`. In edge, crates/rvforge-reader,
  examples/exo-ai-2025, examples/ruvLLM and crates/ruvector-raft/fuzz this
  also syncs stale in-repo path deps to their current manifest versions,
  which makes edge and examples/ruvLLM pass `cargo metadata --locked` again.
- examples/rvf stays on tokio 1.49.0: its `ruqu-algorithms` path dep fails
  to load, so the workspace cannot be resolved (pre-existing).

CI:
- ruvector-postgres-ci.yml: drop `|| true` from `cargo audit` so the
  security job actually fails on vulnerabilities. With these bumps the exact
  command exits 0 (3 allowed unmaintained warnings only).

Verified: root `cargo deny check` -> advisories/bans/licenses/sources ok;
`cargo metadata --locked` ok in every touched workspace except the
pre-existing examples/rvf manifest failure; `cargo check --locked` ok in
crates/ruvix and crates/rvforge-reader.

Refs ruvnet#1487

Co-Authored-By: claude-flow <ruv@ruv.net>
Helper scripts regenerated by the ruflo session upgrade (auto-memory-hook,
hook-handler, intelligence, statusline, manifest). Unrelated to the
RUSTSEC fixes in this branch; kept as a separate commit so it can be
dropped independently.

Co-Authored-By: claude-flow <ruv@ruv.net>
@nicholas-ruest

Copy link
Copy Markdown
Author

CI results (from the fork)

The workflows on this PR are waiting for a maintainer to approve them, because it comes from a first-time contributor's fork. To get results in the meantime, I ran the same pull_request workflows on the fork against the same head commit, 79f7fd079. A CI-only mirror PR, nicholas-ruest#1, triggered them. All 16 runs passed:

Workflow Result
supply-chain (cargo deny, cargo audit, npm audit, lockfile integrity, dependency-review) ✅
Workspace CI ✅
Clippy + fmt ✅
PostgreSQL Extension CI (pull_request + workflow_dispatch) ✅ ✅
RuVector-Postgres CI/CD, with the now-blocking Security Audit (pull_request + workflow_dispatch) ✅ ✅
Build Native Modules ✅
RuvLLM Native Build ✅
Benchmarks ✅
Python portfolio ✅
RVForge CI ✅
WASM Dedup Check ✅
onnx-embeddings-wasm ✅
regression-guard ✅
ruvector-verified CI ✅

A maintainer can click Approve and run to get the same checks on this PR directly.

🤖 Generated with claude-flow

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

supply-chain: cargo deny fails on main (RUSTSEC-2026-0486, xattr unsound)

1 participant