Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | The CVSS 4.0 score of 6.3 reflects moderate severity with several mitigating factors: the attack vector is network-based (AV:N) but requires high complexity (AC:H), suggesting an attacker must craft both the exploit path and successfully inject a prompt that causes the model to use it. Unauthenticated access (PR:N) means any user of the SDK is potentially exposed. The impact is limited to confidentiality and integrity of local files (VC:L, VI:L) with no availability impact. The CVSS vector indicates this is not a critical remote code execution, but rather a sandbox escape within a specific SDK feature. The presence of a publicly available GitHub commit hash and release tag (0.81.0) indicates the vendor has published a patch, reducing the window of exposure for organizations that update promptly. The real-world risk is contingent on deployment patterns: applications using the memory tool feature with untrusted model inputs (prompt injection vectors) face material risk; applications that do not use this specific tool or sanitize model inputs face minimal risk. The attack requires both successful prompt injection and knowledge of the path structure, making this a moderate-priority issue despite the moderate CVSS score. |
| Exploit ScenarioDerived | An attacker crafts a prompt injection payload targeting an application using the vulnerable SDK's memory tool-for example, an application that allows user input to be included in prompts sent to Claude. The injected prompt steers the model to write sensitive data (API keys, credentials, database configurations) to a path like /app/memory-logs (where /app/memory is the intended sandbox root) or reads files from a sibling directory /app/memory_backups. Because the SDK's path validation only checks the string prefix /app/memory without a trailing separator, the request bypasses the sandbox and succeeds, exposing files outside the intended boundary. The attacker retrieves the leaked data via the model's response or subsequent file access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 31, 2026
Path traversal vulnerability in Anthropic Claude SDK for TypeScript (versions 0.79.0-0.80.x) allows remote attackers to read and write files outside the intended sandboxed memory directory via prompt injection. The vulnerability exploits incomplete path validation in the local filesystem memory tool, where a model supplied with crafted input can reference sibling directories sharing the memory root's name prefix. Patch available in version 0.81.0; no public exploit code or active exploitation confirmed, but the attack surface is exposed to any application using the affected SDK versions with model-supplied file paths.
RemediationAI
Immediately upgrade the Anthropic Claude SDK for TypeScript to version 0.81.0 or later, which contains the patched path validation logic that correctly appends trailing path separators before prefix checks. For applications unable to update immediately, implement input sanitization and validation at the application layer to prevent prompt injection attacks that could exploit the memory tool feature; sanitize all user-controllable input passed to model prompts and restrict the model's access to the memory tool if possible through SDK configuration. Consult the security advisory at https://github.com/anthropics/anthropic-sdk-typescript/security/advisories/GHSA-5474-4w2j-mq4c for additional context and confirmation of the patch.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The Anthropic Claude SDK for TypeScript implements a local filesystem memory tool that manages file I/O operations intended to be sandboxed within a specific directory. The vulnerability resides in CWE-22 (Improper Limitation of a Pathname to a Restricted Directory, 'Path Traversal'), occurring in the path validation logic that uses a simple string prefix check without appending a trailing path separator. For example, if the memory root is /app/memory, an attacker can supply /app/memory-sibling as a crafted path; because the prefix check only validates that the path starts with /app/memory (without the separator), it incorrectly permits traversal to /app/memory-sibling and its contents. This allows arbitrary file read/write operations on the host filesystem when a language model is prompted to use the memory tool with malicious input, effectively breaking the sandbox boundary.
Know when Claude Sdk For Typescript gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (github) · only source for this CVE.
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
Claude SDK for TypeScript provides access to the Claude API from server-side TypeScript or JavaScript applications. From version 0.79.0 to before version 0.81.0, the local filesystem memory tool in the Anthropic TypeScript SDK validated model-supplied paths using a string prefix check that did not append a trailing path separator. A model steered by prompt injection could supply a crafted path that resolved to a sibling directory sharing the memory root's name as a prefix, allowing reads and writes outside the sandboxed memory directory. This issue has been patched in version 0.81.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-17679
GHSA-5474-4w2j-mq4c
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB