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

CVE-2026-41686: Claude SDK Information Disclosure Flaw

CVE-2026-41686 is an information disclosure vulnerability in Claude SDK for TypeScript affecting versions 0.79.0 to 0.91.0. Insecure file permissions expose agent memory to local attackers. This article covers technical details, affected versions, impact, and mitigation steps.

Published: May 7, 2026

CVE-2026-41686 Overview

CVE-2026-41686 is an insecure file permissions vulnerability in the Anthropic Claude SDK for TypeScript. The flaw resides in the BetaLocalFilesystemMemoryTool, which persists agent memory state to disk. Affected versions from 0.79.0 up to (but not including) 0.91.1 create memory files using the Node.js default mode 0o666 and directories using 0o777. On systems with a standard umask, these artifacts are world-readable. In containerized environments such as many Docker base images that use a permissive umask, the files become world-writable. The issue is patched in version 0.91.1.

Critical Impact

A local attacker on a shared host can read persisted agent state, and in containerized deployments can modify memory files to influence subsequent Claude model behavior.

Affected Products

  • Anthropic Claude SDK for TypeScript versions 0.79.0 through 0.91.0
  • Server-side TypeScript or JavaScript applications using BetaLocalFilesystemMemoryTool
  • Containerized deployments (Docker base images) running the affected SDK versions

Discovery Timeline

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

Technical Details for CVE-2026-41686

Vulnerability Analysis

The vulnerability is classified as Incorrect Permission Assignment for Critical Resource [CWE-732]. The BetaLocalFilesystemMemoryTool writes agent memory artifacts to the local filesystem without specifying restrictive file modes. Node.js falls back to its defaults, applying 0o666 to files and 0o777 to directories before the process umask is applied.

On standard Linux hosts where the umask is 0o022, the resulting permissions become 0o644 and 0o755, allowing any local user to read agent memory contents. Many Docker base images run with a permissive umask of 0o000, leaving files at 0o666 and directories at 0o777. Any process or user inside the container can then read and modify the persisted state.

The memory tool is intended to give Claude agents persistent context across sessions. Because that context is replayed into model prompts, write access to the memory files allows an attacker to inject instructions or poisoned data that the model will treat as trusted history.

Root Cause

The SDK omits an explicit mode argument when calling Node.js filesystem APIs such as fs.writeFile and fs.mkdir. The defaults are appropriate for non-sensitive content but inadequate for files that store agent state and influence model output.

Attack Vector

Exploitation requires local access to the host or container running the Claude SDK. An unprivileged local user enumerates memory directories created by the agent process and reads their contents to extract conversation history, tool outputs, or sensitive context. In containers with a permissive umask, the same user overwrites memory files with crafted content. The agent loads the tampered data on the next invocation, allowing the attacker to steer model decisions, suppress prior context, or inject malicious instructions through stored memory.

No verified exploit code is publicly available. The vulnerability mechanism is documented in the GitHub Security Advisory GHSA-p7fg-763f-g4gf.

Detection Methods for CVE-2026-41686

Indicators of Compromise

  • Memory files created by the Claude SDK with permissions of 0o644, 0o666, or broader
  • Memory directories with permissions of 0o755 or 0o777 owned by the agent process user
  • Unexpected modifications to memory files outside the agent runtime, especially writes from non-agent UIDs

Detection Strategies

  • Audit the installed version of @anthropic-ai/sdk across Node.js services and flag any version in the range 0.79.0 to 0.91.0
  • Run periodic permission scans (find <memory_path> -perm /o+w) over directories used by BetaLocalFilesystemMemoryTool
  • Compare hashes of memory files against expected agent-generated baselines to identify tampering

Monitoring Recommendations

  • Enable filesystem auditing (auditd, eBPF, or container runtime logs) on memory storage paths used by the SDK
  • Alert on writes to agent memory files originating from processes other than the SDK runtime
  • Track package manifests in CI/CD to detect downgrades to vulnerable SDK versions

How to Mitigate CVE-2026-41686

Immediate Actions Required

  • Upgrade @anthropic-ai/sdk to version 0.91.1 or later in all TypeScript and JavaScript applications
  • Inventory containers and shared hosts where the SDK is deployed and verify the umask configuration
  • Restrict access to existing memory directories to the agent service account only

Patch Information

The maintainers fixed the issue in version 0.91.1 by setting restrictive file and directory modes when the BetaLocalFilesystemMemoryTool writes to disk. Refer to the GitHub Security Advisory GHSA-p7fg-763f-g4gf for full remediation details.

Workarounds

  • Set a restrictive umask such as 0o077 for the process running the SDK before the agent starts
  • Place memory directories on filesystems or mount points with access controls limited to the agent user
  • Avoid running the SDK on multi-tenant hosts or shared containers until the upgrade is applied
bash
# Configuration example: enforce a restrictive umask and ownership for the agent process
umask 0077
mkdir -p /var/lib/claude-agent/memory
chown agent:agent /var/lib/claude-agent/memory
chmod 700 /var/lib/claude-agent/memory
npm install @anthropic-ai/sdk@^0.91.1

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechAnthropic

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/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
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-732
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-34450: Claude SDK Python Information Disclosure Flaw

  • CVE-2026-35021: Claude Code CLI OS Command Injection RCE

  • CVE-2026-34452: Claude SDK Path Traversal 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