banner logoJoin us at RSAC™ 2026 Conference, March 23–March 26 | North Expo, Booth N-5863Join us at RSAC™ 2026, March 23–March 26Learn More
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    • 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
    • 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-59828

CVE-2025-59828: Claude Code Auth Bypass Vulnerability

CVE-2025-59828 is an authentication bypass flaw in Anthropic Claude Code affecting Yarn 2.0+ users. Auto-executed plugins bypass directory trust dialogs, allowing code execution before user consent. This article covers affected versions, technical details, impact assessment, and mitigation strategies.

Published: March 11, 2026

CVE-2025-59828 Overview

CVE-2025-59828 is a high-severity vulnerability affecting Anthropic Claude Code, an agentic coding tool. Prior to version 1.0.39, when using Claude Code with Yarn versions 2.0+, Yarn plugins are auto-executed when running yarn --version. This behavior could lead to a bypass of the directory trust dialog in Claude Code, as plugins would be executed prior to the user accepting the risks of working in an untrusted directory.

Critical Impact

Malicious Yarn plugins can execute arbitrary code before users have a chance to review and accept the security risks of an untrusted directory, potentially leading to unauthorized code execution on the user's system.

Affected Products

  • Anthropic Claude Code versions prior to 1.0.39
  • Claude Code installations using Yarn 2.0+ (Berry)
  • Node.js environments running vulnerable Claude Code versions

Discovery Timeline

  • 2025-09-24 - CVE CVE-2025-59828 published to NVD
  • 2025-11-26 - Last updated in NVD database

Technical Details for CVE-2025-59828

Vulnerability Analysis

This vulnerability falls under CWE-829 (Inclusion of Functionality from Untrusted Control Sphere). The core issue stems from the interaction between Claude Code's trust model and Yarn Berry's plugin system. When Claude Code performs package management operations, it may invoke Yarn commands that trigger automatic plugin execution before the user has explicitly trusted the working directory.

The security boundary that Claude Code establishes through its directory trust dialog is effectively bypassed because Yarn Berry plugins execute during routine version checks and other Yarn operations. This creates a window where potentially malicious code embedded in Yarn plugins can run with the user's privileges without explicit consent.

Users running Yarn Classic (version 1.x) are unaffected by this vulnerability, as the plugin auto-execution behavior is specific to Yarn 2.0 and later versions (Yarn Berry).

Root Cause

The root cause is the order of operations in Claude Code's initialization sequence when working with Yarn Berry projects. The application did not account for Yarn 2.0+'s plugin architecture, which auto-executes plugins during common Yarn operations. This means that simply checking the Yarn version or performing preliminary package management checks could trigger plugin code execution before the directory trust evaluation was complete.

Attack Vector

The attack requires a network-accessible malicious repository or project that an attacker crafts with a malicious Yarn plugin configuration. When a user opens this project in Claude Code:

  1. Claude Code attempts to gather project information, including checking Yarn version
  2. Yarn 2.0+ automatically executes any configured plugins during this check
  3. The malicious plugin code runs before the user sees or accepts the trust dialog
  4. The attacker achieves code execution in the context of the user's session

The attack requires user interaction in the form of opening an untrusted project, but the trust bypass means users cannot make an informed decision before potentially malicious code executes.

Detection Methods for CVE-2025-59828

Indicators of Compromise

  • Unexpected Yarn plugin files in project .yarn/plugins/ directories
  • Modified .yarnrc.yml files with suspicious plugin configurations
  • Unusual process spawning from Yarn or Claude Code processes
  • Network connections initiated during project initialization before trust acceptance

Detection Strategies

  • Monitor for unexpected plugin entries in .yarnrc.yml files within project directories
  • Implement file integrity monitoring on Yarn configuration files
  • Review process trees for unusual child processes spawned during Claude Code initialization
  • Alert on Yarn plugin execution in directories that have not been explicitly trusted

Monitoring Recommendations

  • Enable verbose logging for Claude Code operations to track initialization sequences
  • Monitor system calls and file access patterns during project opening operations
  • Implement endpoint detection rules for suspicious Yarn plugin behavior
  • Review audit logs for Claude Code process activity in newly accessed directories

How to Mitigate CVE-2025-59828

Immediate Actions Required

  • Update Claude Code to version 1.0.39 or later immediately
  • Review any recently opened projects for suspicious Yarn plugin configurations
  • Audit .yarnrc.yml and .yarn/plugins/ directories in projects for unexpected content
  • Consider temporarily using Yarn Classic for untrusted projects until update is applied

Patch Information

This vulnerability has been fixed in Claude Code version 1.0.39. Users on standard Claude Code auto-update will have received this fix automatically. Users performing manual updates should update to the latest version immediately.

For more information, refer to the GitHub Security Advisory.

Workarounds

  • Manually inspect .yarnrc.yml files in project directories before opening them in Claude Code
  • Remove or disable Yarn plugins from untrusted projects before opening
  • Use Yarn Classic (version 1.x) for untrusted projects as a temporary mitigation
  • Implement directory-level restrictions to prevent plugin auto-execution
bash
# Check for Yarn plugins in a project before opening
cat .yarnrc.yml | grep -i "plugins"
ls -la .yarn/plugins/ 2>/dev/null

# Temporarily switch to Yarn Classic for untrusted projects
corepack prepare yarn@1.22.22 --activate

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechAnthropic Claude Code

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.07%

  • 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-829
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-25723: Anthropic Claude Code Auth Bypass Flaw

  • CVE-2026-25724: Anthropic Claude Code Path Traversal

  • CVE-2026-25725: Claude Code Privilege Escalation Flaw

  • CVE-2025-64755: Claude Code Privilege Escalation Flaw
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
  • English
  • 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