Security Digest · Vulnerability record
CVE-2025-31477: Improper Scope Validation in the `open` Endpoint of `tauri-plugin-shell`
The Tauri shell plugin allows access to the system shell.
CVSS 9.3 Critical EPSS 1.0% · p64
Should you act?
Critical and remotely reachable
No known exploitation yet, but it is network-reachable without credentials. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.
- Not in CISA KEV, but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 1.0%, percentile 64: FIRST’s model estimates a 1.0% chance of exploitation activity in the next 30 days, higher than 64% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes
tauri-plugin-shell(crates.io (Rust)) < 2.2.1, fixed in 2.2.1;@tauri-apps/plugin-shell(npm) < 2.2.1, fixed in 2.2.1. Check your lockfile, including transitive dependencies.
What it is
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.
From the GitHub advisory
Impact
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.
You are not affected if you have explicitly configured a validation regex or manually set the open endpoint to true in the plugin configuration.
Weakness type: CWE-20.
Product: tauri-plugin-shell (crates.io (Rust)) · Assigned by: GitHub_M · Published: 2025-04-02
Affected and fixed versions
| Ecosystem | Package | Vulnerable | First fixed |
|---|---|---|---|
| crates.io (Rust) | tauri-plugin-shell | < 2.2.1 | 2.2.1 |
| npm | @tauri-apps/plugin-shell | < 2.2.1 | 2.2.1 |
| Vendor | Product | Affected versions (per CVE record) |
|---|---|---|
| tauri-apps | plugins-workspace | < 2.2.1 |
Severity scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_M | 4.0 | 9.3 Critical | 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 |
| GitHub | 4.0 | 9.3 | 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 |
- Attack vector: network (remotely reachable)
- Attack complexity: low
- Attack requirements: none
- Privileges required: none (no login)
- User interaction: none
CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.
Exploitation and urgency
- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc, automatable yes, technical impact total.
- FIRST EPSS (model of 2026-10-21): 1.04% probability of exploitation activity in the next 30 days; percentile 64.
Timeline
- — CVE record published by GitHub_M
- — GitHub-reviewed advisory GHSA-c9pr-q8gx-3mgp published (critical)
- — CVE record last updated
Sources and references
Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.
Vulnerability records
- GitHub Advisory GHSA-c9pr-q8gx-3mgp github.com
- CVE.org record CVE-2025-31477 cve.org
- NVD entry CVE-2025-31477 nvd.nist.gov
Other references from the CVE record and advisory
- github.com github.com
- github.com github.com