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-2025-59536

CVE-2025-59536: Anthropic Claude Code RCE Vulnerability

CVE-2025-59536 is a code injection flaw in Anthropic Claude Code that allows remote code execution before trust confirmation. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 22, 2026

CVE-2025-59536 Overview

Claude Code, an agentic coding tool developed by Anthropic, is affected by a Code Injection vulnerability (CWE-94) in versions prior to 1.0.111. The vulnerability exists due to a bug in the startup trust dialog implementation that allows malicious code execution before user consent is granted.

Critical Impact

Attackers can achieve arbitrary code execution by tricking users into starting Claude Code in a directory containing malicious project files, bypassing the intended trust dialog security mechanism.

Affected Products

  • Anthropic Claude Code versions prior to 1.0.111
  • Claude Code for Node.js environments

Discovery Timeline

  • 2025-10-03 - CVE-2025-59536 published to NVD
  • 2025-10-23 - Last updated in NVD database

Technical Details for CVE-2025-59536

Vulnerability Analysis

This Code Injection vulnerability affects the startup trust dialog implementation in Claude Code. The security flaw allows the execution of code contained within a project directory before the user has explicitly accepted the startup trust dialog, effectively bypassing the intended security control designed to prevent untrusted code execution.

The vulnerability requires user interaction—specifically, the user must launch Claude Code while in an untrusted directory containing malicious code. This attack scenario is particularly concerning for developers who may navigate to unfamiliar repositories or cloned projects without first verifying their contents.

Root Cause

The root cause of this vulnerability lies in a bug within the startup trust dialog implementation. The trust dialog is designed to serve as a security gate that requires explicit user consent before allowing project code to execute. However, due to this implementation flaw, the execution of project code occurs before the trust dialog completes its authorization check, creating a race condition that attackers can exploit.

Attack Vector

The attack vector involves social engineering combined with the technical vulnerability. An attacker would need to:

  1. Create or compromise a code repository with malicious payload files
  2. Convince a target user to clone or download the repository
  3. Have the user start Claude Code while in the malicious project directory

Once Claude Code is started in the untrusted directory, the malicious code executes automatically before the trust dialog can prevent it. The network-accessible nature of this attack (via malicious repositories) combined with the requirement for user interaction characterizes the attack surface.

The vulnerability mechanism involves the trust dialog's timing issue—project code is evaluated or executed during the initialization phase before the blocking trust dialog completes. This allows embedded malicious code to run with the same privileges as the Claude Code process.

Detection Methods for CVE-2025-59536

Indicators of Compromise

  • Unexpected process spawning from Claude Code application instances
  • Unusual network connections initiated during Claude Code startup
  • Suspicious file system modifications occurring before trust dialog interaction
  • Process execution logs showing code execution prior to user confirmation events

Detection Strategies

  • Monitor Claude Code version numbers across development environments to identify instances running versions below 1.0.111
  • Implement endpoint detection rules for abnormal child process creation from Claude Code
  • Review application logs for startup sequence anomalies indicating premature code execution
  • Deploy file integrity monitoring on development workstations to detect unauthorized changes

Monitoring Recommendations

  • Enable verbose logging for Claude Code application startup events
  • Configure security tooling to alert on code execution patterns associated with trust dialog bypass
  • Establish baseline behavior profiles for Claude Code to identify deviations
  • Monitor for repository clone operations followed by immediate Claude Code launches in those directories

How to Mitigate CVE-2025-59536

Immediate Actions Required

  • Update Claude Code to version 1.0.111 or later immediately
  • Verify auto-update functionality is enabled for Claude Code installations
  • Audit development environments to identify vulnerable versions
  • Educate developers about the risks of starting Claude Code in untrusted directories

Patch Information

Anthropic has released version 1.0.111 which resolves this vulnerability. Users with standard Claude Code auto-update enabled will have received this fix automatically. Users performing manual updates should update to the latest version immediately.

For additional details, refer to the GitHub Security Advisory GHSA-4fgq-fpq9-mr3g.

Workarounds

  • Do not start Claude Code in untrusted or unfamiliar project directories until the update is applied
  • Always verify the contents of cloned repositories before opening them with development tools
  • Consider running Claude Code in isolated environments when working with untrusted code
  • Implement organizational policies requiring trust verification before opening external projects
bash
# Verify Claude Code version
claude --version

# If version is below 1.0.111, update immediately
# For npm-based installations:
npm update @anthropic-ai/claude-code

# Verify the update was successful
claude --version
# Expected: 1.0.111 or higher

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAnthropic Claude Code

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.03%

  • 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-94
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-66032: Anthropic Claude Code RCE Vulnerability

  • CVE-2025-65099: Anthropic Claude Code RCE Vulnerability

  • CVE-2025-58764: Anthropic Claude Code RCE Vulnerability

  • CVE-2025-54795: Anthropic Claude Code RCE 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