Repository navigation
fix(deps): move to Tauri 2.13, off the unsound glib 0.18 (alert #198) - #20
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Fixes Dependabot alert #198: Unsoundness in
IteratorandDoubleEndedIteratorimpls forglib::VariantStrIter(RUSTSEC-2024-0429, moderate, affectsglib0.15.0 to 0.19.x, fixed in 0.20.0).Where
glibcame from. It's a Linux-only dependency: Tauri's Linux stack (gtk0.18,webkit2gtk2.0, throughtao,wry,muda,libappindicatorandtauriitself) pulled inglib0.18.5. Windows and macOS builds never contained it.Why Dependabot couldn't fix it.
gtk0.18 pinsglib0.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:
gtk0.19,webkit2gtk3.1,wry0.58,tao0.38,muda0.22 andtray-icon0.27, all onglib0.22. So:tauri2.12.7 → 2.13.0 andtauri-build2.7.6 → 2.8.0, with the plugins on their latest. The lockfile now has a singleglib, 0.22.11.Cargo.tomlasks fortauri2.13 andtauri-build2.8, so a regenerated lockfile can never fall back toglib0.18. A comment there says why.@tauri-apps/apiand@tauri-apps/cli2.12 → 2.13.0, to match (Tauri's CLI refuses mismatched versions).rust-versionand 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()); onlyglibitself 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
cargo fmt --check,cargo clippy --all-targets -- -D warningsandcargo test(67 tests) pass. This compiles the whole new GTK stack against the system libraries.WebviewWindow::hwnd(), whose signature is unchanged in 2.13. This pull request's Desktop app run builds the Windows, macOS and Linux installers.npm run checkpasses (typecheck, lint, 549 unit tests, build).@tauri-apps/api2.13 calls the shell would have failed it.Checklist
feature/<name>and the commits follow the commit style.npm run checkpasses (typecheck, lint, unit tests, build).npm run e2epasses, or the change can't affect the UI.cargo fmt --check,cargo clippy --all-targets -- -D warningsandcargo testpass insrc-tauri/.docs/,AGENTS.md) where behaviour, commands or architecture changed.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