# CVE-2025-31477: Improper Scope Validation in the open Endpoint of tauri-plugin-shell

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.50%, higher than 75% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-04-02T21:10:14.264Z
- Modified: 2026-09-10T03:50:23.724Z
- Also known as: GHSA-c9pr-q8gx-3mgp
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- tauri-apps plugins-workspace: < 2.2.1
- tauri-plugin-shell (crates.io): before 2.2.1
- @tauri-apps/plugin-shell (npm): before 2.2.1
- tauri plugin-shell: before 2.2.1

## Every score

- GitHub_M: CVSS: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: CVSS:4.0 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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/tauri-apps/plugins-workspace/security/advisories/GHSA-c9pr-q8gx-3mgp> (exploit, vendor-advisory, web)
- <https://github.com/tauri-apps/plugins-workspace/commit/9cf0390a52497e273db1a1b613a0e26827aa327c> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-31477> (advisory)
- <https://github.com/tauri-apps/plugins-workspace> (package)

## Sources

- CVE List: [CVE-2025-31477](https://www.cve.org/CVERecord?id=CVE-2025-31477), CVE Terms of Use, modified 2025-04-03
- GitHub Advisory Database: [GHSA-c9pr-q8gx-3mgp](https://github.com/advisories/GHSA-c9pr-q8gx-3mgp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-31477](https://nvd.nist.gov/vuln/detail/CVE-2025-31477), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-31477 · Whole record: https://cve.day/CVE-2025-31477.json · Rebuilt by cve.day 2026-11-25T22:58:55.969Z
