Skip to content

chore(deny): ignore unreachable quick-xml DoS advisories (macOS-only) - #1057

Merged
yigitdot merged 1 commit into
mainfrom
fix/quick-xml-advisories
Jul 2, 2026
Merged

yigitdot merged 1 commit into
mainfrom
fix/quick-xml-advisories

Conversation

@yigitdot

@yigitdot yigitdot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Fixes the repo-wide cargo deny CI failure caused by two newly-published RustSec advisories against quick-xml 0.38.x:

  • RUSTSEC-2026-0194 — O(N²) duplicate-attribute check (CPU-exhaustion DoS)
  • RUSTSEC-2026-0195 — unbounded NsReader namespace allocation (OOM DoS)

Both require quick-xml >= 0.41.0.

Why ignore rather than upgrade

quick-xml reaches us only via plist, which netdev declares as a macOS/iOS-only dependency ([target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.plist]; chain quick-xml → plist → netdev → netwatch → iroh 1.0). So:

  • It is not compiled into our Linux/musl deployment binaries — cargo-deny only flags it because it audits the full cross-platform graph.
  • Even on macOS, netdev feeds plist only local, trusted system network data — never attacker-controlled XML / NsReader input.
  • No reachable upgrade: latest plist 1.9.0 still pulls quick-xml 0.39.4 (< 0.41), and iroh 1.0.0 / netwatch 0.19 / netdev 0.44 version-pin the chain.

This mirrors the existing atomic-polyfill ignore precedent (a platform-conditional dep not compiled on Linux targets, suppressed with a re-eval note). The section header comment is updated to note the last two entries are platform-gated DoS vulns rather than unmaintained notices.

Verification

cargo deny check → advisories ok, bans ok, licenses ok, sources ok.

Re-evaluation (drop the ignores once the chain reaches quick-xml >= 0.41, or if macOS/iOS becomes a shipped target) tracked in #1056.

🤖 Generated with Claude Code

RUSTSEC-2026-0194 (O(N^2) attribute check) and RUSTSEC-2026-0195
(unbounded NsReader allocation) were newly published against
quick-xml 0.38.x, failing the cargo-deny advisories job repo-wide.

quick-xml reaches us only via `plist`, a macOS/iOS-only dependency of
netdev (netdev -> netwatch -> iroh), so it is not compiled into our
Linux/musl deployment binaries, and even on macOS netdev feeds plist
only local/trusted system data — never untrusted XML. No reachable fix:
plist 1.9 still pulls quick-xml 0.39 (< 0.41), and iroh 1.0 / netwatch
0.19 / netdev 0.44 pin the chain. Ignore both with justification,
mirroring the existing atomic-polyfill platform-conditional precedent.

Re-evaluation tracked in #1056.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates deny.toml to suppress two transitive DoS vulnerabilities in quick-xml (RUSTSEC-2026-0194 and RUSTSEC-2026-0195). These are unreachable in the shipped Linux/musl binaries as they originate from a macOS/iOS-only transitive dependency. I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Coverage report

Total: 83.20% (was 83.20%, ▲ +0.01%) — 41949/50417 lines

No Rust files changed in this PR.

History
Commit Total Δ vs base
69d85d1 (HEAD) 83.20% ▲ +0.01%

@yigitdot
yigitdot merged commit c85bbaf into main Jul 2, 2026
21 checks passed
@yigitdot
yigitdot deleted the fix/quick-xml-advisories branch July 2, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant