Skip to content

Clear known-accepted quick-xml CVEs when wayland-rs ships fix #206

Closed

Description

@EVWorth

File created at: /tmp/issue-body.md
EOFISSUE_BODY

Context

scripts/cargo-audit-check.sh currently has a KNOWN_ACCEPTED list containing 2 real vulnerability IDs. These are passed to cargo audit --ignore so CI doesn't stay permanently red.

RUSTSEC-2026-0194  Quadratic run time in quick-xml start tag check (DoS)
RUSTSEC-2026-0195  Unbounded namespace allocation in quick-xml (DoS)

Why

The constraint quick-xml = "0.39" comes from wayland-scanner 0.31.10 (transitive via rfd 0.17.2 → tauri 2.x for native file dialogs on Linux Wayland).

The fix exists upstream:

  • wayland-rs PR chore(deps): bump the cargo group across 1 directory with 3 updates #938 by MarijnS95: "wayland-scanner: Bump quick-xml dependency to 0.41"
  • Merged 2026-07-08 on master branch
  • NOT YET RELEASED to crates.io
  • Subsequent unreleased work on master also includes breaking enum changes ("Generate tuple struct for enums, and don't use WEnum"), so we can't just patch to latest master

How to clear

When upstream publishes a new wayland-scanner release with the quick-xml = "0.41" constraint:

  1. Dependabot (or Renovate, if configured) will open a PR bumping rfd → tauri → wayland-scanner → wayland-protocols → wayland-client chain. That PR will pull in the new wayland-scanner with the fix.

  2. OR run cargo update -p wayland-scanner manually after upstream release.

  3. Once wayland-scanner 0.31.11 (or whichever) is in Cargo.lock and quick-xml >= 0.41 is resolved:

    a. Remove the two IDs from the KNOWN_ACCEPTED array in scripts/cargo-audit-check.sh
    b. Commit + push
    c. CI gate goes green naturally

  4. Verify with cargo audit (from src-tauri/) — should show 0 real vulnerabilities, 0 quick-xml advisories.

Detection — how do I know when to do this?

Acceptance criteria

  • scripts/cargo-audit-check.sh KNOWN_ACCEPTED list is empty
  • cargo audit (no --ignore flags) shows 0 real vulnerabilities
  • quick-xml resolved version is >= 0.41 in Cargo.lock
  • CI cargo-audit job passes with --ignore removed
  • KNOWN_ACCEPTED script comment block updated or removed

Related

  • Supersedes the temporary --ignore approach in scripts/cargo-audit-check.sh (a documented known-accepted list, not silent hiding)
  • Part of Fix 28 cargo-audit advisories on transitive deps #204 work
  • Blocks CI gate from going permanently green for the 2 quick-xml CVEs
    EOF
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

    dependenciesrust

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions