Security mailing lists by PureSourceCode

CVE-2025-31477

CRITICAL 9.3CVSS 4.0

Improper Scope Validation in the `open` Endpoint of `tauri-plugin-shell`

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.

Published
2 Apr 2025
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-20
Also known as
GHSA-c9pr-q8gx-3mgp
Sources
NVDJSONOSV GHSA-c9pr-q8gx-3mgpJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 CRITICAL 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/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
OSV GitHub CVSS 4.0 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 nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD tauri plugin-shell
cpe:2.3:a:tauri:plugin-shell:*:*:*:*:*:rust:*:*
< 2.2.1 2.2.1
NVD tauri plugin-shell
cpe:2.3:a:tauri:plugin-shell:*:*:*:*:*:node.js:*:*
< 2.2.1 2.2.1
OSV crates.io tauri-plugin-shell < 2.2.1 2.2.1
OSV npm @tauri-apps/plugin-shell < 2.2.1 2.2.1

References

History

  • 25 Nov 2026 20:57 UTC · NVD: first stored (published 2 Apr 2025)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 2 Apr 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.