Skip to content

Investigate resolving NU1903 for Tmds.DBus in Uno desktop sample #506

Description

@adrianhall

Summary

Split out from #499 (now scoped to the Avalonia sample only). Restoring the Uno desktop-head sample on Linux/macOS surfaces a NU1903 high-severity restore warning:

warning NU1903: Package 'Tmds.DBus' 0.16.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-xrw6-gwf8-vvr9

What's known so far

  • Advisory: GHSA-xrw6-gwf8-vvr9 / CVE-2026-39959 — "malicious D-Bus peers can spoof signals, exhaust file descriptor resources, and cause denial of service". Patched version: Tmds.DBus 0.92.0 (fixes < 0.92.0).
  • Repro: samples/todoapp/TodoApp.Uno/TodoApp.Uno/TodoApp.Uno.csproj (net10.0-desktop head) — dotnet restore floats Tmds.DBus 0.16.0.
  • This restore attempt hit an unrelated, pre-existing NU1605 package-downgrade error (Uno.WinUI 5.5.87 vs 5.4.22, driven by a mismatch between global.json's Uno.Sdk version and CommunityToolkit.WinUI.Behaviors' floor), which blocks confirming the full Tmds.DBus 0.16.0 dependency chain. This needs to be resolved, or at least understood, first.
  • Separately, there's an open question about bumping Uno itself from 5.4.5 to 6.6+ to pick up a non-vulnerable transitive version of this dependency — that's a larger migration effort and can be tracked as its own follow-up if a targeted fix here doesn't land cleanly.

Ask

Investigate one of:

  1. Resolve the pre-existing Uno.WinUI NU1605 package-downgrade issue on TodoApp.Uno's desktop head, then re-check whether a compatible dependency bump already resolves Tmds.DBus to >= 0.92.0 (mirroring how Avalonia.FreeDesktop 11.3.18 already resolved the equivalent Avalonia-side finding — see Investigate resolving NU1903 for Tmds.DBus.Protocol in Avalonia desktop sample #499).
  2. If not, add an explicit <PackageReference Include="Tmds.DBus" Version="0.92.0" /> (or later) override to TodoApp.Uno's desktop head, mirroring the SQLitePCLRaw.bundle_e_sqlite3 override pattern used in fix: resolve NU1903 for SQLitePCLRaw.lib.e_sqlite3 by pinning SQLitePCLRaw 3.x #498.
  3. Confirm whether Tmds.DBus is reachable code (Linux D-Bus paths) in the Uno desktop sample at all before deciding this is worth a version bump vs. just documenting/suppressing.
  4. Consider whether this should be folded into a broader Uno 5.4.5 → 6.6+ major-version-bump effort instead of a standalone patch, if that migration is going to happen soon anyway.

Related

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