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-34451

CVE-2026-34451: Claude SDK Path Traversal Vulnerability

CVE-2026-34451 is a path traversal flaw in Claude SDK for TypeScript that allows attackers to access files outside the sandboxed directory. This article covers technical details, affected versions, and mitigation.

Published: April 2, 2026

CVE-2026-34451 Overview

A path traversal vulnerability exists in the Anthropic TypeScript SDK's local filesystem memory tool that allows attackers to read and write files outside the intended sandboxed memory directory. The vulnerability stems from improper path validation that uses a string prefix check without appending a trailing path separator, enabling a model steered by prompt injection to escape directory boundaries.

Critical Impact

Attackers can leverage prompt injection to manipulate the AI model into supplying crafted paths that bypass sandbox restrictions, enabling unauthorized file system access to sibling directories sharing the memory root's name as a prefix.

Affected Products

  • Anthropic TypeScript SDK versions 0.79.0 to 0.80.x
  • Server-side TypeScript applications using the vulnerable SDK
  • Server-side JavaScript applications using the vulnerable SDK

Discovery Timeline

  • 2026-03-31 - CVE CVE-2026-34451 published to NVD
  • 2026-04-01 - Last updated in NVD database

Technical Details for CVE-2026-34451

Vulnerability Analysis

This path traversal vulnerability (CWE-22) exists in the local filesystem memory tool component of the Anthropic TypeScript SDK. The core issue lies in how the SDK validates file paths supplied by the AI model. When the memory tool receives a path request, it performs validation using a simple string prefix check against the configured memory root directory. However, this validation fails to append a trailing path separator (/) to the root path before comparison.

This oversight creates a significant security gap: if the memory root is configured as /app/memory, the prefix check would incorrectly validate paths like /app/memory-backup/sensitive.txt or /app/memory_logs/secrets.json because they begin with the same string prefix. A malicious actor can exploit this through prompt injection attacks, manipulating the model to request files from these sibling directories that share the memory root's name as a prefix.

Root Cause

The root cause is improper input validation in the path normalization routine. The string prefix validation approach is fundamentally flawed for directory boundary enforcement because it does not account for directory naming conventions in file systems. Proper path canonicalization and the addition of a trailing separator before comparison would prevent paths to sibling directories from passing validation.

Attack Vector

The attack vector is network-based and requires the attacker to successfully inject malicious prompts that influence the model's behavior. The attack flow involves:

  1. Attacker crafts a prompt injection payload targeting an application using the vulnerable SDK
  2. The injected prompt manipulates the AI model to request file operations on crafted paths
  3. The model supplies a path like /app/memory-sibling/target.txt when memory root is /app/memory
  4. The faulty prefix validation accepts this path as valid
  5. The SDK performs unauthorized read or write operations outside the sandbox

The vulnerability mechanism exploits the inadequate path boundary validation. When the memory root is set to a directory like /app/memory, an attacker-influenced model can supply paths such as /app/memory-backup/credentials.json which pass the prefix check but resolve to entirely different directory trees. For detailed technical analysis, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-34451

Indicators of Compromise

  • File access attempts to directories with names similar to the configured memory root (e.g., memory-backup, memory_old, memoryfiles)
  • Unexpected file read or write operations in directories adjacent to the memory sandbox
  • Prompt injection patterns in application logs targeting file path generation
  • Model-generated file paths containing directory traversal sequences or sibling directory names

Detection Strategies

  • Monitor application logs for file system operations targeting paths outside the expected memory root directory
  • Implement runtime detection for prompt injection patterns in user inputs
  • Deploy file integrity monitoring on directories adjacent to memory sandbox locations
  • Audit SDK version dependencies to identify applications running affected versions 0.79.0 through 0.80.x

Monitoring Recommendations

  • Enable verbose logging for the Anthropic SDK memory tool file operations
  • Configure alerting for any file access attempts that resolve to unexpected directory paths
  • Implement behavioral analysis to detect anomalous model-generated file path patterns
  • Review application access logs for patterns consistent with prompt injection attacks

How to Mitigate CVE-2026-34451

Immediate Actions Required

  • Upgrade the Anthropic TypeScript SDK to version 0.81.0 or later immediately
  • Audit applications using SDK versions 0.79.0 through 0.80.x for potential exploitation
  • Review file system access logs for evidence of unauthorized directory access
  • Consider temporarily disabling the local filesystem memory tool if immediate upgrade is not possible

Patch Information

The vulnerability has been patched in Anthropic TypeScript SDK version 0.81.0. The fix properly validates model-supplied paths by ensuring the trailing path separator is included in the prefix comparison, preventing escape to sibling directories. Organizations should update their dependencies immediately using their package manager.

For detailed patch information, refer to:

  • GitHub Commit with Fix
  • SDK v0.81.0 Release Notes
  • GitHub Security Advisory GHSA-5474-4w2j-mq4c

Workarounds

  • Configure the memory root directory with a unique name that is unlikely to have sibling directories with similar prefixes
  • Implement additional application-level path validation before passing paths to the SDK memory tool
  • Use file system permissions to restrict SDK process access to only the intended memory directory
  • Deploy the application in a containerized environment with strict filesystem isolation
bash
# Update Anthropic TypeScript SDK to patched version
npm update @anthropic-ai/sdk@0.81.0

# Or using yarn
yarn upgrade @anthropic-ai/sdk@0.81.0

# Verify installed version
npm list @anthropic-ai/sdk

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechAnthropic Typescript Sdk

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:N/PR:N/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
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Update

  • GitHub Release Notes

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free 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