Skip to content

fix(deps): move to Tauri 2.13, off the unsound glib 0.18 (alert #198) - #20

Merged
Kkkermit merged 2 commits into
mainfrom
feature/tauri-2-13-glib
Dec 3, 2026
Merged

Kkkermit merged 2 commits into
mainfrom
feature/tauri-2-13-glib

Conversation

@Kkkermit

@Kkkermit Kkkermit commented Dec 3, 2026

Copy link
Copy Markdown
Owner

What and why

Fixes Dependabot alert #198: Unsoundness in Iterator and DoubleEndedIterator impls for glib::VariantStrIter (RUSTSEC-2024-0429, moderate, affects glib 0.15.0 to 0.19.x, fixed in 0.20.0).

Where glib came from. It's a Linux-only dependency: Tauri's Linux stack (gtk 0.18, webkit2gtk 2.0, through tao, wry, muda, libappindicator and tauri itself) pulled in glib 0.18.5. Windows and macOS builds never contained it.

Why Dependabot couldn't fix it. gtk 0.18 pins glib 0.18, so the newest version Dependabot could reach was 0.18.5.

The fix. Tauri 2.13.0 (28 November) moved its whole Linux stack to new bindings: gtk 0.19, webkit2gtk 3.1, wry 0.58, tao 0.38, muda 0.22 and tray-icon 0.27, all on glib 0.22. So:

  • Rust: tauri 2.12.7 → 2.13.0 and tauri-build 2.7.6 → 2.8.0, with the plugins on their latest. The lockfile now has a single glib, 0.22.11.
  • Minimums: Cargo.toml asks for tauri 2.13 and tauri-build 2.8, so a regenerated lockfile can never fall back to glib 0.18. A comment there says why.
  • npm: @tauri-apps/api and @tauri-apps/cli 2.12 → 2.13.0, to match (Tauri's CLI refuses mismatched versions).
  • Rust version: Tauri 2.13 and the new GTK crates require Rust 1.92, so the minimum moves from 1.89 to 1.92 (rust-version and the docs). CI already builds with the latest stable Rust.

Was Statsify exposed? No. Nothing in our dependency tree calls VariantStrIter (str_iter() / array_iter_str()); only glib itself contains it. The upgrade removes the vulnerable version anyway, and Dependabot closes the alert once main's lockfile no longer has it.

How it was tested

  • Rust (Linux): cargo fmt --check, cargo clippy --all-targets -- -D warnings and cargo test (67 tests) pass. This compiles the whole new GTK stack against the system libraries.
  • Windows: the Windows-only window-material code calls WebviewWindow::hwnd(), whose signature is unchanged in 2.13. This pull request's Desktop app run builds the Windows, macOS and Linux installers.
  • Unit tests: npm run check passes (typecheck, lint, 549 unit tests, build).
  • End-to-end: the whole suite at desktop, tablet and phone sizes: 440 passed, 0 failed. The fake desktop bridge rejects any IPC call it doesn't know, so a change in how @tauri-apps/api 2.13 calls the shell would have failed it.

Checklist

  • The branch is named feature/<name> and the commits follow the commit style.
  • npm run check passes (typecheck, lint, unit tests, build).
  • npm run e2e passes, or the change can't affect the UI.
  • Rust changed: cargo fmt --check, cargo clippy --all-targets -- -D warnings and cargo test pass in src-tauri/.
  • New behaviour has tests (Vitest for logic, Playwright with an axe check for UI, Rust tests for commands).
  • UI changes work at desktop, tablet and phone sizes, by keyboard, with reduced motion and in every theme.
  • Docs are updated (README, docs/, AGENTS.md) where behaviour, commands or architecture changed.
  • No secrets, tokens, personal data or real listening history in code, tests, screenshots or logs.

Releasing: this pull request doesn't change the version. To ship the fix in 1.1.1, merge it before #19, which bumps the version to 1.1.1 and so releases it.


Generated by Claude Code

Kkkermit and others added 2 commits December 3, 2026 10:17
Tauri's Linux stack (gtk 0.18, webkit2gtk 2) pulled in glib 0.18.5, whose
VariantStrIter Iterator and DoubleEndedIterator impls are unsound
(RUSTSEC-2024-0429, Dependabot alert #198; fixed in glib 0.20). Dependabot
couldn't update it on its own because gtk 0.18 pins glib 0.18. Tauri 2.13
moves to gtk 0.19, webkit2gtk 3, wry 0.58 and tao 0.38, on glib 0.22.

tauri and tauri-build now ask for 2.13 and 2.8 at least, so the lockfile
can't fall back to the old stack, and @tauri-apps/api and @tauri-apps/cli
match at 2.13.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TCk6t7edJdscNtTSeFmyQN
tauri 2.13, wry 0.58, tao 0.38, gtk 0.19 and glib 0.22 all declare
rust-version 1.92; with an older toolchain the build would fail on them
rather than on this crate's own check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TCk6t7edJdscNtTSeFmyQN
@github-actions github-actions Bot added desktop The desktop app (src-tauri) bug Something isn't working labels Dec 3, 2026
@Kkkermit
Kkkermit merged commit f23d380 into main Dec 3, 2026
18 checks passed
@Kkkermit
Kkkermit deleted the feature/tauri-2-13-glib branch December 3, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working desktop The desktop app (src-tauri)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant