A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-31477

CVE-2025-31477: Tauri Plugin-shell RCE Vulnerability

CVE-2025-31477 is a remote code execution vulnerability in Tauri Plugin-shell caused by improper protocol validation. Attackers can exploit dangerous protocols to execute arbitrary code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 18, 2026

CVE-2025-31477 Overview

CVE-2025-31477 is a critical improper input validation vulnerability in the Tauri shell plugin that allows attackers to bypass protocol restrictions and achieve remote code execution. The Tauri shell plugin exposes functionality to execute code and open programs on the system through its open endpoint, which is designed to work with the system opener (e.g., xdg-open on Linux). While this functionality was intended to be restricted to a reasonable number of protocols like https:// or mailto:// by default, improper validation of allowed protocols rendered these restrictions non-functional.

Critical Impact

Attackers can abuse this vulnerability to open potentially dangerous protocols such as file://, smb://, or nfs:// through the system registered protocol handler, leading to remote code execution on affected systems.

Affected Products

  • Tauri plugin-shell versions prior to 2.2.1 (Rust)
  • Tauri plugin-shell versions prior to 2.2.1 (Node.js)

Discovery Timeline

  • 2025-04-02 - CVE-2025-31477 published to NVD
  • 2025-04-29 - Last updated in NVD database

Technical Details for CVE-2025-31477

Vulnerability Analysis

The vulnerability exists in the Tauri shell plugin's open endpoint, which provides functionality to interact with the system's default application handler. The plugin was designed with security controls to limit which URI protocols could be opened, intending to allow only safe protocols like http://, https://, tel:, and mailto://. However, due to improper validation logic in the protocol checking mechanism, these restrictions failed to function as intended.

This flaw allows untrusted user input to be passed to the open endpoint, which then processes potentially dangerous protocols without proper validation. When malicious protocols are processed, they are handed off to the operating system's registered protocol handlers, which can execute arbitrary code or access sensitive resources.

Root Cause

The root cause is classified as CWE-20 (Improper Input Validation). The protocol validation logic in the shell plugin failed to properly enforce the allowlist of safe protocols. The default configuration claimed to restrict access to safe protocols, but the implementation did not correctly validate incoming protocol schemes against this allowlist, allowing arbitrary protocols to pass through unchecked.

Attack Vector

Exploitation of this vulnerability requires either direct exposure of the open endpoint to application users or the ability to execute code in the frontend of a Tauri application. An attacker can craft malicious URIs using dangerous protocols like file://, smb://, or nfs:// and pass them to the vulnerable endpoint. The attack can be executed over the network without requiring authentication or user interaction.

The attack flow involves:

  1. Attacker identifies a Tauri application using the vulnerable shell plugin
  2. Attacker crafts a malicious URI with a dangerous protocol scheme
  3. The URI is passed to the open endpoint through user-controlled input or frontend code execution
  4. The plugin fails to validate the protocol and passes it to the system handler
  5. The system executes the protocol handler, potentially running arbitrary code

The security patch demonstrates the fix by changing the default permissions:

text
         }
       ]
     },
-    "shell:allow-open",
+    "shell:default",
     "shell:allow-kill",
     "shell:allow-stdin-write",
     "process:allow-exit",

Source: GitHub Commit Change

The updated default permissions documentation clarifies the intended behavior:

text
 
 #### Granted Permissions
 
-It allows to use the `open` functionality without any specific
+It allows to use the `open` functionality with a reasonable
 scope pre-configured. It will allow opening `http(s)://`,
 `tel:` and `mailto:` links.
 """

Source: GitHub Commit Change

Detection Methods for CVE-2025-31477

Indicators of Compromise

  • Unexpected calls to the shell:allow-open endpoint with non-standard protocol schemes
  • System logs showing protocol handler invocations for file://, smb://, nfs://, or other dangerous protocols originating from Tauri applications
  • Evidence of remote file system access or network share mounting initiated by application processes

Detection Strategies

  • Monitor application logs for URI open requests containing protocols other than http://, https://, tel:, or mailto://
  • Implement runtime monitoring for Tauri applications to detect exploitation attempts through the shell plugin
  • Review application capability configurations for use of shell:allow-open instead of the more restrictive shell:default permission

Monitoring Recommendations

  • Enable verbose logging for Tauri shell plugin operations in production environments
  • Monitor network traffic for unusual SMB or NFS connection attempts from application servers
  • Implement alerting on file system access patterns that deviate from normal application behavior

How to Mitigate CVE-2025-31477

Immediate Actions Required

  • Upgrade Tauri plugin-shell to version 2.2.1 or later immediately
  • Audit all Tauri applications using the shell plugin to identify exposure
  • Review application capability configurations and replace shell:allow-open with shell:default where applicable
  • Restrict user input that could reach the open endpoint until patching is complete

Patch Information

Tauri has released version 2.2.1 of the plugin-shell package which properly enforces protocol validation on the open endpoint. The fix ensures that only safe protocols (http://, https://, tel:, and mailto://) are allowed by default. Organizations should update their dependencies to the patched version as soon as possible.

For detailed patch information, refer to the GitHub Security Advisory and the GitHub Commit Change.

Workarounds

  • If immediate patching is not possible, restrict or disable the shell plugin's open functionality entirely
  • Implement strict input validation at the application layer to filter dangerous protocol schemes before they reach the plugin
  • Use explicit protocol allowlists in application code rather than relying on default plugin restrictions
bash
# Update Tauri plugin-shell to patched version
# For Rust projects using Cargo
cargo update -p tauri-plugin-shell

# For Node.js projects using npm
npm update @tauri-apps/plugin-shell

# Verify the installed version is 2.2.1 or later
cargo tree -p tauri-plugin-shell

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechTauri

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability3.97%

  • Known ExploitedNo
  • CVSS 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/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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-20

  • NVD-CWE-noinfo
  • Vendor Resources
  • GitHub Commit Change

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-42184: Tauri Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English