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-2026-4092

CVE-2026-4092: Clasp Path Traversal RCE Vulnerability

CVE-2026-4092 is a path traversal vulnerability in Clasp that enables remote code execution through malicious Google Apps Script projects. This article covers technical details, affected versions, impact, and mitigation.

Published: March 20, 2026

CVE-2026-4092 Overview

CVE-2026-4092 is a path traversal vulnerability affecting Clasp (Command Line Apps Script Projects), Google's official CLI tool for managing Google Apps Script projects. The vulnerability impacts versions prior to 3.2.0 and allows a remote attacker to achieve remote code execution by crafting a malicious Google Apps Script project containing specially crafted filenames with directory traversal sequences.

Critical Impact

Remote attackers can exploit this path traversal flaw to write arbitrary files outside the intended directory, potentially leading to remote code execution on developer systems that clone or pull malicious Apps Script projects.

Affected Products

  • Clasp versions prior to 3.2.0
  • Google Apps Script CLI tool (clasp)
  • Development environments using vulnerable clasp installations

Discovery Timeline

  • 2026-03-13 - CVE CVE-2026-4092 published to NVD
  • 2026-03-16 - Last updated in NVD database

Technical Details for CVE-2026-4092

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as path traversal or directory traversal. The flaw exists in how Clasp handles filenames when processing Google Apps Script projects.

When a developer uses Clasp to clone or pull a Google Apps Script project, the tool downloads project files and saves them to the local filesystem. The vulnerability arises because Clasp fails to properly sanitize filename inputs, allowing attackers to craft malicious filenames containing directory traversal sequences such as ../ that escape the intended project directory.

An attacker can exploit this by creating a malicious Google Apps Script project with specially crafted filenames. When an unsuspecting developer clones or syncs this project using a vulnerable version of Clasp, the attacker-controlled files can be written to arbitrary locations on the developer's filesystem, potentially overwriting critical configuration files or placing malicious executables in startup directories.

Root Cause

The root cause is improper input validation of filenames received from Google Apps Script projects. The Clasp CLI tool does not adequately sanitize or validate path components within filenames before writing files to the local filesystem. This allows directory traversal sequences like ../, ..\\, or encoded variants to bypass the intended project directory boundaries.

Attack Vector

The attack is network-based and requires user interaction. An attacker must first create a malicious Google Apps Script project containing files with crafted directory traversal sequences in their names. The attacker then needs to entice a victim developer to clone or pull this malicious project using a vulnerable version of Clasp.

When the victim executes commands like clasp clone or clasp pull on the malicious project, the path traversal sequences in the filenames cause files to be written outside the expected project directory. Depending on the traversal depth and target paths, an attacker could:

  • Overwrite shell configuration files (e.g., .bashrc, .zshrc) to inject malicious commands
  • Place executables in user startup directories for persistence
  • Modify application configuration files to alter behavior
  • Write to system directories if the user has elevated privileges

The vulnerability requires no authentication to exploit, as any attacker with the ability to share a Google Apps Script project can craft the malicious payload.

Detection Methods for CVE-2026-4092

Indicators of Compromise

  • Unexpected file modifications outside of Clasp project directories following clasp clone or clasp pull operations
  • Presence of suspicious files in home directories or configuration folders that correlate with recent Clasp activity
  • Modified shell configuration files (.bashrc, .profile, .zshrc) with unexpected entries
  • Unusual file write events in system monitoring logs associated with the Clasp process

Detection Strategies

  • Monitor filesystem activity during Clasp operations for writes outside the designated project directory
  • Implement file integrity monitoring (FIM) on critical configuration files and directories
  • Audit installed Clasp versions across development environments to identify vulnerable installations
  • Review recently cloned or pulled Apps Script projects for suspicious filename patterns containing traversal sequences

Monitoring Recommendations

  • Enable verbose logging for Clasp operations to capture filename handling details
  • Deploy endpoint detection and response (EDR) solutions capable of monitoring CLI tool filesystem interactions
  • Establish baseline file access patterns for developer workstations and alert on anomalies
  • Configure alerts for file creation events in sensitive directories triggered by Node.js processes

How to Mitigate CVE-2026-4092

Immediate Actions Required

  • Upgrade Clasp to version 3.2.0 or later immediately across all development environments
  • Audit development workstations for vulnerable Clasp installations using clasp --version
  • Review recently cloned or synced Google Apps Script projects for suspicious file activity
  • Implement network-level controls to restrict access to untrusted Apps Script projects pending patch deployment

Patch Information

The vulnerability has been addressed in Clasp version 3.2.0. The fix implements proper path sanitization to prevent directory traversal sequences from escaping the project directory. Details of the patch can be found in the GitHub Pull Request #1109.

To update Clasp to the patched version, developers should run the appropriate package manager command for their environment.

Workarounds

  • Avoid cloning or pulling Google Apps Script projects from untrusted or unknown sources until the update is applied
  • Manually inspect project file structures before executing Clasp operations on external projects
  • Run Clasp in a sandboxed or containerized environment to limit filesystem access
  • Implement filesystem access controls to restrict write permissions for the Clasp process to designated project directories only
bash
# Update Clasp to patched version
npm update -g @google/clasp

# Verify installed version is 3.2.0 or later
clasp --version

# For yarn users
yarn global upgrade @google/clasp

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechClasp

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability1.32%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/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
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Pull Request
  • Latest CVEs
  • CVE-2025-11956: OBS Student Affairs System XSS Flaw

  • CVE-2026-49199: Acer Predator Connect W6x Firmware RCE Flaw

  • CVE-2026-46344: Openquantumsafe Liboqs DOS Vulnerability

  • CVE-2026-44518: Openquantumsafe Liboqs DoS 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