---
title: "CVE-2025-31477: Improper Scope Validation in the `open` Endpoint of `tauri-plugin-shell`"
url: https://erroneo.us/security/cve/CVE-2025-31477/
description: "CVE-2025-31477 (tauri-plugin-shell (crates.io (Rust))): The Tauri shell plugin allows access to the system shell. Prior to 2.2.1, the Tauri shell plugin…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-04-02
date_modified: 2025-04-03
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2025-31477"
kev: false
cvss: 9.3
epss: 0.01039
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- 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.

## Affected packages

- crates.io (Rust) `tauri-plugin-shell` < 2.2.1 → fixed: 2.2.1
- npm `@tauri-apps/plugin-shell` < 2.2.1 → fixed: 2.2.1

## Affected products (CVE record)

- tauri-apps plugins-workspace: < 2.2.1

## Severity

- GitHub_M CVSS 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`
- GitHub CVSS 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`

## Exploitation

- 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.

## Sources

- [GitHub Advisory GHSA-c9pr-q8gx-3mgp](https://github.com/advisories/GHSA-c9pr-q8gx-3mgp)
- [CVE.org record CVE-2025-31477](https://www.cve.org/CVERecord?id=CVE-2025-31477)
- [NVD entry CVE-2025-31477](https://nvd.nist.gov/vuln/detail/CVE-2025-31477)
- [github.com](https://github.com/tauri-apps/plugins-workspace/security/advisories/GHSA-c9pr-q8gx-3mgp)
- [github.com](https://github.com/tauri-apps/plugins-workspace/commit/9cf0390a52497e273db1a1b613a0e26827aa327c)

---
Source page: https://erroneo.us/security/cve/CVE-2025-31477/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
