CVE-2026-34451: Path validation flaw in Anthropic TypeScript SDK memory tool
The local filesystem memory tool in the Anthropic Claude SDK for TypeScript (versions 0.79.0 to before 0.81.0) validated model-supplied paths with a string prefix check lacking a trailing path separator, so a model steered by prompt injection could read and write files in sibling directories outside the sandboxed memory root. The issue was patched in version 0.81.0.
Disclosed 31 March 2026 · Record updated 13 September 2026
Impact
A prompt-injected model could escape the sandboxed memory directory and read or write files in sibling directories sharing the memory root's name prefix.
Our coverage
No articles linked to this incident yet.
Sources
- nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-34451
- afterpack.devhttps://afterpack.dev/blog/claude-code-source-leak
