The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-65099

CVE-2025-65099: Anthropic Claude Code RCE Vulnerability

CVE-2025-65099 is a remote code execution flaw in Anthropic Claude Code that allows malicious code execution via Yarn plugins before user trust approval. This article covers technical details, affected versions, and patches.

Published: March 18, 2026

CVE-2025-65099 Overview

Claude Code is an agentic coding tool developed by Anthropic. Prior to version 1.0.39, a code injection vulnerability existed that could allow malicious code execution through Yarn plugins before the user accepted the startup trust dialog. This vulnerability specifically affects users running Claude Code on machines with Yarn 3.0 or above, where an attacker could craft a malicious project directory containing weaponized Yarn plugins.

Critical Impact

Attackers could achieve arbitrary code execution on affected systems by tricking users into starting Claude Code in a malicious project directory, bypassing the trust dialog security control entirely.

Affected Products

  • Anthropic Claude Code versions prior to 1.0.39
  • Systems running Yarn 3.0 or above
  • Claude Code for Node.js environments

Discovery Timeline

  • 2025-11-19 - CVE CVE-2025-65099 published to NVD
  • 2025-11-25 - Last updated in NVD database

Technical Details for CVE-2025-65099

Vulnerability Analysis

This vulnerability represents a Code Injection flaw (CWE-94) in Anthropic's Claude Code agentic coding tool. The core issue stems from the order of operations during Claude Code's initialization process. When a user launches Claude Code in a directory containing a malicious project, the application processes Yarn plugin configurations before presenting the user with the startup trust dialog.

This design flaw creates a critical security gap where code can be executed without explicit user consent. The trust dialog, which is intended to serve as a security gate for untrusted directories, becomes ineffective because the malicious Yarn plugins have already been loaded and executed by the time the dialog appears.

The vulnerability requires user interaction to exploit—specifically, a user must start Claude Code in an untrusted directory. However, in real-world scenarios, developers frequently navigate to and open projects from various sources including cloned repositories, downloaded archives, or shared project directories.

Root Cause

The root cause of this vulnerability is improper initialization sequencing in Claude Code's startup process. The application integrates with Yarn's plugin system without adequately considering the security implications of loading and executing Yarn plugins before obtaining user trust confirmation.

Yarn 3.0 introduced a powerful plugin architecture that allows plugins to hook into various Yarn operations. These plugins are defined in the .yarnrc.yml configuration file and can contain or reference arbitrary JavaScript code. Claude Code's failure to defer Yarn plugin processing until after the trust dialog is accepted creates the exploitable condition.

Attack Vector

The attack vector for this vulnerability is network-based, requiring social engineering to convince a victim to open a malicious project directory. An attacker would need to:

  1. Create a malicious project containing a crafted .yarnrc.yml file
  2. Include a weaponized Yarn plugin with malicious JavaScript code
  3. Distribute the project to potential victims (via repository hosting, email, or other means)
  4. Wait for the victim to start Claude Code in that directory

The malicious Yarn plugin executes automatically during Claude Code's initialization, potentially allowing the attacker to gain code execution on the victim's machine, exfiltrate sensitive data, or establish persistence before the user has any opportunity to review and reject the untrusted project.

Detection Methods for CVE-2025-65099

Indicators of Compromise

  • Presence of unexpected or modified .yarnrc.yml files in project directories
  • Suspicious Yarn plugin entries pointing to local or remote malicious code
  • Unusual process spawning or network connections during Claude Code startup
  • Evidence of code execution before trust dialog acceptance in application logs

Detection Strategies

  • Monitor for creation or modification of .yarnrc.yml files containing plugin configurations in untrusted directories
  • Implement file integrity monitoring for Yarn configuration files in development environments
  • Use endpoint detection to identify suspicious JavaScript execution patterns during Claude Code initialization
  • Review Claude Code logs for evidence of plugin execution before user interaction

Monitoring Recommendations

  • Enable verbose logging in Claude Code to track initialization sequences
  • Configure EDR solutions to monitor for process creation during Claude Code startup
  • Implement alerting for Yarn plugin configuration changes in shared development environments
  • Review and audit .yarnrc.yml files when opening projects from external sources

How to Mitigate CVE-2025-65099

Immediate Actions Required

  • Upgrade Claude Code to version 1.0.39 or later immediately
  • Audit existing projects for suspicious .yarnrc.yml configurations
  • Review and validate Yarn plugins in all development environments
  • Educate developers about the risks of opening untrusted project directories

Patch Information

Anthropic has addressed this vulnerability in Claude Code version 1.0.39. The patch ensures that Yarn plugins are not loaded and executed until after the user has reviewed and accepted the startup trust dialog. Users should upgrade to the latest version through their standard update channels.

For detailed information about the security fix, refer to the GitHub Security Advisory.

Workarounds

  • Avoid starting Claude Code in untrusted or unfamiliar project directories until the upgrade is applied
  • Manually inspect .yarnrc.yml files for suspicious plugin configurations before opening projects
  • Consider temporarily downgrading to Yarn 2.x or below if immediate patching is not possible
  • Use isolated development environments or containers when working with untrusted code
bash
# Verify your Claude Code version and upgrade if necessary
# Check current version
claude --version

# Upgrade to patched version 1.0.39 or later
npm update -g @anthropic/claude-code

# Inspect Yarn configuration in project directories before opening
cat .yarnrc.yml | grep -i plugin

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 Score7.7

  • EPSS Probability0.12%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/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
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-66032: Anthropic Claude Code RCE Vulnerability

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

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

  • CVE-2025-59041: 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