Skip to main content

Claude Sdk For Typescript CVE-2026-34451

| EUVDEUVD-2026-17679 MEDIUM
Path Traversal (CWE-22)
2026-03-31 security-advisories@github.com GHSA-5474-4w2j-mq4c
6.3
CVSS 4.0 · Vendor: github
View

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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

anthropic-sdk-typescript 0.79.0, < 0.81.0

Affected Packages

npm @anthropic-ai/sdk fix: 0.81.0
euvd anthropic_sdk_typescript_0_79_0 fix: 0.81.0

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

Vendor (github) PRIMARY 6.3 MEDIUM
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

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch released
Apr 02, 2026 - 02:30 nvd
Patch available
CVE Published
Mar 31, 2026 - 22:16 nvd
MEDIUM 6.3

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

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy