Update dependency @tauri-apps/plugin-shell to v2.2.1 [SECURITY]#27
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
Update dependency @tauri-apps/plugin-shell to v2.2.1 [SECURITY]#27renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
276175f to
0bee298
Compare
0bee298 to
b28e0c3
Compare
b28e0c3 to
b796569
Compare
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.
This PR contains the following updates:
2.0.1→2.2.1GitHub Vulnerability Alerts
CVE-2025-31477
Impact
The Tauri
shellplugin exposes functionality to execute code and open programs on the system. Theopenendpoint of this plugin is designed to allow open functionality with the system opener (e.g.xdg-openon Linux). This was meant to be restricted to a reasonable number of protocols likehttpsormailtoby default.This default restriction was not functional due to improper validation of the allowed protocols, allowing for potentially dangerous protocols like
file://,smb://, ornfs://and others to be opened by the system registered protocol handler.By passing untrusted user input to the
openendpoint these potentially dangerous protocols can be abused to gain remote code execution on the system. This either requires direct exposure of the endpoint to application users or code execution in the frontend of a Tauri application.You are not affected if you have explicitly configured a validation regex or manually set the
openendpoint totruein the plugin configuration.Technically the scope was never a limitation for the rust side as it is not seen as an enforceable security boundary but we decided to mark the rust crate as affected since the plugin does not need to be a frontend dependency to be exposed.
Patches
The issue has been patched in the
2.2.1version of the plugin.The plugin now differentiates between an unset scope and an explicit validation disable for the
openendpoint.Workarounds
A way to prevent arbitrary protocols would be setting the shell plugin configuration value
opentotrue.tauri.conf.jsonThe above will only allow
mailto,httpandhttpslinks to be opened.If the
openendpoint should not be allowed at all there are two possible workarounds.tauri^in the plugin configurationshell:defaultand all instances ofshell:allow-openfrom thecapabilitiesAlternatively we recommend usage of the
openerplugin, as the shell plugin deprecated theopenendpoint previously.References
PoC
This is a windows specific proof of concept.
create-tauri-appto make a new Tauri app.tauri add shellto add the shell plugin.await window.__TAURI_INTERNALS__.invoke("plugin:shell|open", {path: "file:///c:/windows/system32/calc.exe"});in the developer console.Release Notes
tauri-apps/plugins-workspace (@tauri-apps/plugin-shell)
v2.2.1Compare Source
v2.2.0Compare Source
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.