{"id":"CVE-2026-34451","published":"2026-03-31T21:35:21Z","modified":"2026-04-01T18:57:05Z","title":"Claude SDK for TypeScript: Memory Tool Path Validation Allows Sandbox Escape to Sibling Directories","vendor":"anthropics","product":"anthropic-sdk-typescript","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0037,"percentile":0.31788,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-41","name":"Improper Resolution of Path Equivalence"}],"references":[{"url":"https://github.com/anthropics/anthropic-sdk-typescript/security/advisories/GHSA-5474-4w2j-mq4c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/anthropics/anthropic-sdk-typescript/commit/0ac69b3438ee9c96b21a7d3c39c07b7cdb6995d9","tags":["x_refsource_MISC"]},{"url":"https://github.com/anthropics/anthropic-sdk-typescript/releases/tag/sdk-v0.81.0","tags":["x_refsource_MISC"]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":6.36},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"anthropics","affectedVersions":[{"vendor":"anthropics","product":"anthropic-sdk-typescript","versions":[">= 0.79.0, < 0.81.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-01T18:56:48.666585Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@anthropic-ai/sdk","vulnerableRanges":[">=0.79.0, <0.81.0"],"patched":["0.81.0"],"from":["GHSA-5474-4w2j-mq4c"],"provenance":"source"}],"summary":{"text":"The Anthropic TypeScript SDK's local filesystem memory tool, in versions from 0.79.0 before 0.81.0, validates model-supplied paths with a string prefix check that omits a trailing path separator, so a path can escape the memory root. An attacker who can steer the model through prompt injection, with no authentication or user interaction required and only the attacker-influenced input the model processes, can supply a crafted path resolving to a sibling directory whose name shares the memory root's prefix, enabling reads and writes outside the sandboxed memory directory.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:03:16Z"},"euvd":{"id":"EUVD-2026-17679","exploited":false,"provenance":"source"}}