Repository navigation
Description
Summary
The dependency-audit CI gate added in #1719 (PR #1727) is implemented and correct, but on first run against main it surfaced a backlog of pre-existing advisories that must be triaged/remediated before the hard-fail gate can be merged green. This issue tracks burning that backlog down. Once it is clear (or has a justified allowlist), #1719's gate merges and stays green — reddening only on new advisories.
Rust — cargo audit: 8 vulnerabilities + 25 warnings
Vulnerabilities (drive the non-zero exit) — all transitive:
crossbeam-epoch— RUSTSEC-2026-0204 (invalid pointer deref infmt::Pointer)quick-xml— RUSTSEC-2026-0194 (quadratic-runtime DoS on duplicate attrs), RUSTSEC-2026-0195 (unbounded namespace-declaration alloc DoS)quinn-proto— RUSTSEC-2026-0185 (remote memory exhaustion, unbounded out-of-order stream reassembly)rustls-webpki— RUSTSEC-2026-0098, -0099 (name-constraint bypasses for URI / wildcard names), RUSTSEC-2026-0049 (CRL distribution-point matching), RUSTSEC-2026-0104 (reachable panic in CRL parsing) — TLS cert-validation path, highest priority
Most likely resolve via a semver-compatible cargo update (rustls-webpki, quinn-proto, quick-xml, crossbeam-epoch all have patched releases). Validate the full pre-push gate after updating.
Warnings (25, informational — mostly unmaintained): the gtk-rs GTK3 binding family (atk, gdk*, gtk*, glib) is unmaintained and pulled in transitively by Tauri — no fix until the GTK4 migration, so these are candidates for an accepted-risk allowlist in a root audit.toml. Also bincode, paste, proc-macro-error, rustls-pemfile, serial, unic-* (unmaintained) and anyhow/lru/memmap2/scc (unsound).
npm — bun audit: 57 advisories (4 critical, 18 high, 30 moderate, 5 low)
Predominantly dev/test tooling (not shipped to users): @vitest/browser (critical — Browser Mode file-access gate bypass), jsdom, ws, mermaid (4×), @sveltejs/kit + @sveltejs/adapter-*, devalue (via svelte). bun audit --prod does not reduce the count here. Some need major bumps (breaking) — triage which are reachable in the shipped app vs test-only.
Acceptance criteria
- Resolve or justify all 8 Rust vulnerabilities (prefer
cargo update; allowlist unmaintained-only warnings inaudit.tomlwith rationale) - Triage the 57 npm advisories: bump what's safely bumpable, document accepted-risk (test-only) remainder
-
cargo auditandbun auditboth exit 0 onmain - Un-draft and merge Add cargo audit / bun audit dependency-advisory gate to CI #1719 (PR Add cargo audit / bun audit CI gate (closes #1719) #1727) so the gate goes live green
Context
Surfaced by the audit workflow itself running on PR #1727 (run 30093186957). Prerequisite for #1719. Related supply-chain hardening: Threat T9, security-posture.md.
Activity
mstomar125 commentedon Jul 25, 2026
✅ Completed — merged in PR #1745 (unblocked #1719)
Full remediation, per the chosen "fix everything fixable" approach:
Rust —
cargo updatefixed crossbeam-epoch (RUSTSEC-2026-0204) + quinn-proto (RUSTSEC-2026-0185);.cargo/audit.tomlaccepts-with-tracking the 6 upstream-blocked (quick-xml←tauri, rustls-webpki←libsql 0.6.0).cargo auditexits 0.npm — the 14 production/framework advisories (critical
shell-quote; high@grpc/grpc-js,protobufjs,devalue,lodash-es,form-data; plus@sveltejs/kit,svelte,mermaid,postcss,uuid,ws,js-yaml,dompurify) are fixed via same-majoroverridesin the rootpackage.json.dompurifyis pinned to 3.4.7 (the highest version that sanitizes correctly under Happy-DOM); its 4 residual low/moderate advisories are allowlisted and confirmed unreachable in this app's DOMPurify usage. The remaining 18 allowlisted advisories are all dev/build/test-only or upstream-pinned, each justified inscripts/audit-npm.ts.Verification — full frontend suite 4091/4091 green after all the dependency bumps;
cargo audit+bun run auditboth exit 0; the audit gate reports SUCCESS on the PR. Adversarial review CONFIRMED-GOOD (and its one fail-open finding in the audit wrapper was fixed).Follow-ups: #1743 (bump libsql/tauri to clear the 6 Rust ignores), #1744 (dompurify → browser-mode tests + dev-tooling major bumps to clear the npm allowlist).