{"id":"GHSA-5474-4w2j-mq4c","summary":"Claude SDK for TypeScript: Memory Tool Path Validation Allows Sandbox Escape to Sibling Directories","details":"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.\n\nUsers on the affected versions are advised to update to the latest version.\n\nClaude SDK for TypeScript thanks [hackerone.com/nicksim](https://hackerone.com/nicksim) for reporting this issue!","aliases":["CVE-2026-34451"],"modified":"2026-05-05T16:01:30.184364Z","published":"2026-04-01T21:16:49Z","database_specific":{"github_reviewed_at":"2026-04-01T21:16:49Z","nvd_published_at":"2026-03-31T22:16:20Z","cwe_ids":["CWE-22","CWE-41"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/anthropics/anthropic-sdk-typescript/security/advisories/GHSA-5474-4w2j-mq4c"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34451"},{"type":"WEB","url":"https://github.com/anthropics/anthropic-sdk-typescript/commit/0ac69b3438ee9c96b21a7d3c39c07b7cdb6995d9"},{"type":"PACKAGE","url":"https://github.com/anthropics/anthropic-sdk-typescript"},{"type":"WEB","url":"https://github.com/anthropics/anthropic-sdk-typescript/releases/tag/sdk-v0.81.0"}],"affected":[{"package":{"name":"@anthropic-ai/sdk","ecosystem":"npm","purl":"pkg:npm/%40anthropic-ai/sdk"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.79.0"},{"fixed":"0.81.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-5474-4w2j-mq4c/GHSA-5474-4w2j-mq4c.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N"},{"type":"CVSS_V4","score":"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"}]}