Skip to content

Remediate pre-existing dependency advisories (8 Rust vulns + 57 npm) blocking the #1719 audit gate #1728

Closed

Description

@mstomar125

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 in fmt::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

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

  1. mstomar125 commented on Jul 25, 2026

    @mstomar125
    ContributorAuthor

    ✅ Completed — merged in PR #1745 (unblocked #1719)

    Full remediation, per the chosen "fix everything fixable" approach:

    Rust — cargo update fixed crossbeam-epoch (RUSTSEC-2026-0204) + quinn-proto (RUSTSEC-2026-0185); .cargo/audit.toml accepts-with-tracking the 6 upstream-blocked (quick-xml←tauri, rustls-webpki←libsql 0.6.0). cargo audit exits 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-major overrides in the root package.json. dompurify is 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 in scripts/audit-npm.ts.

    Verification — full frontend suite 4091/4091 green after all the dependency bumps; cargo audit + bun run audit both 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).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions