Live threats

All CVEs / Tauri

CVE-2025-31477Tauri Plugin-shell

Critical 9.3 No auth needed

Priority
71
CVSS 4.0
9.3
EPSS
—
Auth required
No
Published
Apr 2, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

The Tauri shell plugin allows access to the system shell. Prior to 2.2.1, the Tauri shell plugin exposes functionality to execute code and open programs on the system. The open endpoint of this plugin is designed to allow open functionality with the system opener (e.g. xdg-open on Linux). This was meant to be restricted to a reasonable number of protocols like https or mailto by default. This default restriction was not functional due to improper validation of the allowed protocols, allowing for potentially dangerous protocols like file://, smb://, or nfs:// and others to be opened by the system registered protocol handler. By passing untrusted user input to the open endpoint 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. This vulnerability is fixed in 2.2.1.

Original NVD text.

What to do

  1. Apply the vendor's security update for Plugin-shell.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io tauri-plugin-shell < 2.2.1 2.2.1 cargo update -p tauri-plugin-shell --precise 2.2.1
npm @tauri-apps/plugin-shell < 2.2.1 2.2.1 npm install @tauri-apps/plugin-shell@2.2.1

Per OSV / GitHub Advisories (GHSA-c9pr-q8gx-3mgp). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
tauriplugin-shell< 2.2.1
tauriplugin-shell< 2.2.1

Official sources

References

Links published by the sources. Open them with care.