Skip to content

fix: resolve cargo audit and npm audit vulnerabilities #175

Closed

Description

@EVWorth

Summary

Both cargo audit and npm audit are failing in CI with real vulnerabilities in the dependency tree. These block all PRs from passing CI.

cargo audit failures (5 vulnerabilities)

ID Severity Crate Solution
RUSTSEC-2023-0071 5.9 (medium) openssl-src No fix available
RUSTSEC-2026-0104 - rustls-webpki Upgrade to >=0.103.13
RUSTSEC-2026-0099 - rustls-webpki Upgrade to >=0.103.12
RUSTSEC-2026-0098 - rustls-webpki Upgrade to >=0.103.12
RUSTSEC-2024-0363 - atk-sys Upgrade to >=0.8.1

npm audit failures

DOMPurify contains a Cross-site Scripting vulnerability (GHSA-v2wj-7wpq-c8vv) - 1 high severity advisory. Plus 4 other low/moderate advisories.

Next steps

  • Run cargo update to try resolving the Rust advisories where fixes exist
  • Run npm audit fix for the npm vulnerabilities
  • For unfixable advisories (like RUSTSEC-2023-0071/openssl-src), consider adding an [advisories] ignore section to .cargo/audit.toml

Activity

  1. added
    bug
    on Jun 29, 2026
  2. EVWorth commented on Jul 20, 2026

    @EVWorth
    OwnerAuthor

    Closed.

    npm side — PR #222 (merged). DOMPurify GHSA chain fixed via .npmrc min-release-age=7 + npm overrides pinning dompurify@^3.4.11. npm audit on this branch: 0 vulnerabilities.

    cargo side — handled by design in scripts/cargo-audit-check.sh (two-layer policy):

    1. Visible warnings layer: 17 unmaintained/unsound (gtk-rs, unic-*, glib) show in CI but don't fail the gate. Intentional supply-chain transparency.
    2. KNOWN_ACCEPTED list (--ignore passes for vulnerabilities blocked upstream): currently 2 quick-xml DoS (RUSTSEC-2026-0194/-0195) — see Clear known-accepted quick-xml CVEs when wayland-rs ships fix #206.
    3. Already-merged fixes: PR Fix 28 cargo-audit advisories on transitive deps #204/fix(deps): resolve 9 of 28 cargo-audit advisories (#204) #205 resolved 9 of 28 advisories (rustls-webpki, gtk3-macros, etc.).

    Caveat: cargo gap remains for nightly development — cargo update on a developer machine can still pull a version <7 days old. Closes natively when RFC 3923 (-Zmin-publish-age) ships on stable Rust. Tracked as #225.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions