{"id":"CVE-2025-31477","published":"2025-04-02T21:10:14Z","modified":"2025-04-03T13:59:36Z","title":"Improper Scope Validation in the open Endpoint of tauri-plugin-shell","vendor":"tauri-apps","product":"plugins-workspace","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01039,"percentile":0.64768,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/tauri-apps/plugins-workspace/security/advisories/GHSA-c9pr-q8gx-3mgp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tauri-apps/plugins-workspace/commit/9cf0390a52497e273db1a1b613a0e26827aa327c","tags":["x_refsource_MISC"]}],"priority":{"score":19.5,"factors":[{"name":"EPSS percentile","points":12.95},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"tauri-apps","affectedVersions":[{"vendor":"tauri-apps","product":"plugins-workspace","versions":["< 2.2.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-04-03T13:58:49.532045Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"tauri-plugin-shell","vulnerableRanges":["<2.2.1"],"patched":["2.2.1"],"from":["GHSA-c9pr-q8gx-3mgp"],"provenance":"source"},{"ecosystem":"npm","package":"@tauri-apps/plugin-shell","vulnerableRanges":["<2.2.1"],"patched":["2.2.1"],"from":["GHSA-c9pr-q8gx-3mgp"],"provenance":"source"}],"summary":{"text":"The Tauri shell plugin (tauri-plugin-shell, part of tauri-apps' plugins-workspace) has improper validation of allowed protocols in its open endpoint, which is meant to pass URLs to the system opener but fails to restrict protocols by default. An attacker who can get untrusted input into the open endpoint, either by direct exposure to application users or through code execution in a Tauri application's frontend, can use protocols such as file://, smb://, or nfs:// to trigger remote code execution, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:46Z"},"euvd":{"id":"EUVD-2025-9626","exploited":false,"provenance":"source"}}