Skip to content
AnthropicGHSA-5474-4w2j-mq4c

Memory Tool Path Validation Allows Sandbox Escape to Sibling Directories

Medium6.3CVE-2026-34451 · Published Mar 31, 2026

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. Users on the affected versions are advised to update to the latest version. Thank you to hackerone.com/nicksim for reporting this issue!

GitHub advisory

Affected versions

PackageAffectedFixed in
@anthropic-ai/sdk
npm
>= 0.79.0, < 0.81.00.81.0
Details and references
CVSS 4.0
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
Severity from
GitHub (reviewed advisory)
Weakness
CWE-22, CWE-41

More Anthropic advisories

All Anthropic

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.