CVE-2026-34451: anthropic claude_sdk_for_typescript Path Traversal
Vulnerability summary
CVE-2026-34451 is a medium (CVSS 6.3) Path Traversal vulnerability in anthropic claude_sdk_for_typescript. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 32.1% of scored vulnerabilities.
Timeline
- 31-03-2026PublishedVulnerability first disclosed.
- 01-04-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 3 sources · 2 versions- OSV · NpmEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
- NVDNIST6.3MediumCVSS: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
- NVDNIST5.4MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.39%
Chance of exploitation in the next 30 days
Percentile
32%
Versus all other CVEs
30-day change
+0.04 pp
From 0.35% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
- CWE-41Improper Resolution of Path EquivalenceThe product is vulnerable to file system contents disclosure through path equivalence. Path equivalence involves the use of special characters in file and directory names. The associated manipulations are intended to generate multiple names for the same object.
Affected systems
@anthropic-ai1 product
- sdk≥ 0.79.0, < 0.81.0
Anthropic1 product
- claude_sdk_for_typescript≥ 0.79.0, < 0.81.0
Anthropics1 product
- anthropic-sdk-typescript≥ 0.79.0, < 0.81.0
3 vendors · 3 products
References
5 links- github.com/anthropics/anthropic-sdk-typescript/security/advisories/GHSA-5474-4w2j-mq4cX Refsource CONFIRMWEBVendor Advisory
- github.com/anthropics/anthropic-sdk-typescript/commit/0ac69b3438ee9c96b21a7d3c39c07b7cdb6995d9X Refsource MISCWEBPatch
- github.com/anthropics/anthropic-sdk-typescript/releases/tag/sdk-v0.81.0X Refsource MISCWEBRelease Notes