Repository navigation
Description
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-xmldependency to0.41" - Merged 2026-07-08 on
masterbranch - 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:
-
Dependabot (or Renovate, if configured) will open a PR bumping
rfd→tauri→wayland-scanner→wayland-protocols→wayland-clientchain. That PR will pull in the new wayland-scanner with the fix. -
OR run
cargo update -p wayland-scannermanually after upstream release. -
Once
wayland-scanner 0.31.11(or whichever) is inCargo.lockandquick-xml >= 0.41is resolved:a. Remove the two IDs from the
KNOWN_ACCEPTEDarray inscripts/cargo-audit-check.sh
b. Commit + push
c. CI gate goes green naturally -
Verify with
cargo audit(fromsrc-tauri/) — should show 0 real vulnerabilities, 0 quick-xml advisories.
Detection — how do I know when to do this?
- Dependabot PR in the repo touching
src-tauri/Cargo.lockwith wayland-protocols/wayland-client/wayland-scanner bumps → that's likely the fix - Check periodically (e.g., when running other dep updates):
cargo update -p wayland-scannerthencargo audit. If the 2 RUSTSEC-2026-019* go away, the upstream fix is in. - Watch upstream: https://github.com/smithay/wayland-rs/commits/master/wayland-scanner/Cargo.toml — new release when one ships.
Acceptance criteria
-
scripts/cargo-audit-check.shKNOWN_ACCEPTED list is empty -
cargo audit(no--ignoreflags) shows 0 real vulnerabilities -
quick-xmlresolved version is>= 0.41inCargo.lock - CI cargo-audit job passes with
--ignoreremoved -
KNOWN_ACCEPTEDscript comment block updated or removed
Related
- Supersedes the temporary
--ignoreapproach inscripts/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
Activity
chore(ci): add known-accepted list for 2 quick-xml CVEs pending upstr…