Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2026-34779

CVE-2026-34779: Electron Framework RCE Vulnerability

CVE-2026-34779 is a remote code execution vulnerability in Electron Framework affecting macOS apps using moveToApplicationsFolder(). This article covers technical details, affected versions, and mitigation strategies.

Published: April 10, 2026

CVE-2026-34779 Overview

CVE-2026-34779 is a Command Injection vulnerability affecting the Electron framework, which is widely used for building cross-platform desktop applications using JavaScript, HTML, and CSS. The vulnerability exists in the app.moveToApplicationsFolder() API on macOS, where an AppleScript fallback path fails to properly sanitize certain characters in the application bundle path. When a user accepts the move-to-Applications prompt under specific conditions, a crafted launch path could lead to arbitrary AppleScript execution.

Critical Impact

Attackers can achieve arbitrary code execution on macOS systems by exploiting improper input sanitization in the AppleScript fallback mechanism, potentially compromising user systems when they interact with seemingly benign prompts.

Affected Products

  • Electron versions prior to 38.8.6
  • Electron versions prior to 39.8.1
  • Electron versions prior to 40.8.0
  • Electron versions prior to 41.0.0-beta.8

Discovery Timeline

  • 2026-04-04 - CVE CVE-2026-34779 published to NVD
  • 2026-04-07 - Last updated in NVD database

Technical Details for CVE-2026-34779

Vulnerability Analysis

This vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), commonly known as Command Injection. The flaw resides in the macOS-specific implementation of Electron's app.moveToApplicationsFolder() function.

When the primary method for moving an application to the Applications folder fails, Electron falls back to using AppleScript to perform the operation. The vulnerable code path does not properly escape or sanitize special characters present in the application bundle path before incorporating them into the AppleScript command. This creates an injection point where specially crafted path components can break out of the intended AppleScript context and execute arbitrary commands.

The attack requires local access and user interaction (the user must accept the move-to-Applications prompt), which limits the attack surface but still presents a significant risk for desktop applications built with Electron.

Root Cause

The root cause is insufficient input validation and improper sanitization of the application bundle path when constructing AppleScript commands. The AppleScript fallback mechanism concatenates the path directly into the script without properly escaping characters that have special meaning in AppleScript syntax, such as quotes, backslashes, or other metacharacters.

Attack Vector

The attack vector is local and requires specific conditions to be met:

  1. The target application must be an Electron-based app that calls app.moveToApplicationsFolder()
  2. The application must be launched from a path containing specially crafted characters
  3. The user must accept the prompt to move the application to the Applications folder
  4. The primary move operation must fail, triggering the vulnerable AppleScript fallback

An attacker could distribute a malicious Electron application or trick a user into launching a legitimate Electron application from a specially crafted directory path. When the move operation fails and falls back to AppleScript, the injected commands would execute with the user's privileges.

The vulnerability mechanism involves path manipulation that injects AppleScript commands. For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-34779

Indicators of Compromise

  • Unusual AppleScript process executions (osascript) spawned by Electron-based applications
  • Applications being launched from directories with unusual or suspicious characters in the path
  • Unexpected child processes spawned during application installation or relocation workflows

Detection Strategies

  • Monitor for osascript process executions with command-line arguments containing suspicious patterns or escaped characters
  • Implement application allowlisting to detect Electron applications running from non-standard locations
  • Use endpoint detection to identify anomalous process hierarchies where Electron apps spawn unexpected AppleScript commands
  • Review logs for Finder or system operations involving application moves with unusual path patterns

Monitoring Recommendations

  • Enable process creation auditing on macOS endpoints to capture full command-line arguments
  • Deploy behavioral detection rules that flag AppleScript execution with embedded shell commands
  • Monitor for applications being executed from user-controlled directories with special characters in paths
  • Implement SentinelOne's behavioral AI to detect anomalous script execution patterns from desktop applications

How to Mitigate CVE-2026-34779

Immediate Actions Required

  • Update all Electron-based applications to use Electron version 38.8.6, 39.8.1, 40.8.0, or 41.0.0-beta.8 or later
  • Audit your Electron applications to determine if they use the app.moveToApplicationsFolder() API
  • If updating is not immediately possible, consider temporarily disabling the move-to-Applications functionality
  • Educate users about the risks of running applications from untrusted or unusually named directories

Patch Information

Electron has released patched versions that properly sanitize the application bundle path before incorporating it into AppleScript commands. The following versions contain the fix:

  • Electron 38.8.6
  • Electron 39.8.1
  • Electron 40.8.0
  • Electron 41.0.0-beta.8

For detailed patch information, see the GitHub Security Advisory.

Workarounds

  • Remove or disable calls to app.moveToApplicationsFolder() in your Electron application until patching is possible
  • Applications that do not use this API are not affected and require no action
  • Pre-install applications directly to the Applications folder to avoid triggering the move functionality
  • Implement application distribution methods that don't rely on the move-to-Applications workflow
bash
# Check Electron version in your application
npm list electron

# Update to a patched version
npm update electron@38.8.6
# or for specific branches:
npm update electron@39.8.1
npm update electron@40.8.0

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechElectron

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityLow
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-34765: Electron Framework RCE Vulnerability

  • CVE-2026-34775: Electron Framework RCE Vulnerability

  • CVE-2026-34781: Electron Framework DoS Vulnerability

  • CVE-2026-34770: Electron Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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