GHSA-5474-4w2j-mq4c

Suggest an improvement
Source
https://github.com/advisories/GHSA-5474-4w2j-mq4c
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-5474-4w2j-mq4c/GHSA-5474-4w2j-mq4c.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5474-4w2j-mq4c
Aliases
Downstream
Published
2026-04-01T21:16:49Z
Modified
2026-05-05T16:01:30.184364Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N CVSS Calculator
  • 6.3 (Medium) CVSS_V4 - 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 CVSS Calculator
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!

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2026-04-01T21:16:49Z",
    "cwe_ids": [
        "CWE-22",
        "CWE-41"
    ],
    "severity": "MODERATE",
    "nvd_published_at": "2026-03-31T22:16:20Z"
}
References

Affected packages

npm / @anthropic-ai/sdk

Package

Name
@anthropic-ai/sdk
View open source insights on deps.dev
Purl
pkg:npm/%40anthropic-ai/sdk

Affected 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"