# CVE-2026-34451: Claude SDK for TypeScript: Memory Tool Path Validation Allows Sandbox Escape to Sibling Directories

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-03-31T21:35:21.018Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-5474-4w2j-mq4c
- Weaknesses: CWE-22, CWE-41
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Claude SDK for TypeScript provides access to the Claude API from server-side TypeScript or JavaScript applications. From version 0.79.0 to before version 0.81.0, 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. This issue has been patched in version 0.81.0.

(As written by CVE List.)

## Affected

- anthropics anthropic-sdk-typescript: >= 0.79.0, < 0.81.0
- @anthropic-ai/sdk (npm): from 0.79.0 before 0.81.0
- anthropic claude_sdk_for_typescript: from 0.79.0 before 0.81.0

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `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`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N`

## References

- <https://github.com/anthropics/anthropic-sdk-typescript/security/advisories/GHSA-5474-4w2j-mq4c> (vendor-advisory, web)
- <https://github.com/anthropics/anthropic-sdk-typescript/commit/0ac69b3438ee9c96b21a7d3c39c07b7cdb6995d9> (patch, web)
- <https://github.com/anthropics/anthropic-sdk-typescript/releases/tag/sdk-v0.81.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34451> (advisory)
- <https://github.com/anthropics/anthropic-sdk-typescript> (package)

## Sources

- CVE List: [CVE-2026-34451](https://www.cve.org/CVERecord?id=CVE-2026-34451), CVE Terms of Use, modified 2026-04-01
- GitHub Advisory Database: [GHSA-5474-4w2j-mq4c](https://github.com/advisories/GHSA-5474-4w2j-mq4c), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-34451](https://nvd.nist.gov/vuln/detail/CVE-2026-34451), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-34451 · Whole record: https://cve.day/CVE-2026-34451.json · Rebuilt by cve.day 2026-11-25T22:59:17.647Z
