Advisory

GHSA-5474-4w2j-mq4c

Also known as: CVE-2026-34451

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.

Users on the affected versions are advised to update to the latest version.

Claude SDK for TypeScript thanks hackerone.com/nicksim for reporting this issue!

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-04-01 21:16 UTC
Modified
2026-05-05 16:01 UTC

Affected packages and fixes

@anthropic-ai/sdk

npm · All systems

Affected

  • introduced 0.79.0, fixed 0.81.0 (semver)

Fixed versions

0.81.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences