CVE-2026-34451
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.
Description as published by the source, in English.
Key facts
- Published
- 2026-03-31
- Last modified
- 2026-07-24
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.3 %
higher than 28 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Anthropic | Claude Sdk For Typescript | ≥ 0.79.0, < 0.81.0 | Affected |
| anthropic-ai | sdk (npm) | ≥ 0.79.0, < 0.81.0 | Affected |
Weakness type
-
CWE-22: Improper Limitation of a Pathname to a Restricted Directory
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special ele…
-
CWE-41: Improper Resolution of Path Equivalence
The product is vulnerable to file system contents disclosure through path equivalence. Path equivalence involves the use of special characters in file and directory names. The associated manipulations are intended to ge…
References
- https://github.com/anthropics/anthropic-sdk-typescript/commit/0ac69b3438ee9c96b21a7d3c39c…
- https://github.com/anthropics/anthropic-sdk-typescript/releases/tag/sdk-v0.81.0
- https://github.com/anthropics/anthropic-sdk-typescript/security/advisories/GHSA-5474-4w2j…
Related at Berigo
Articles
-
A language model found an attack that forces HAWK to double its keys
Same product
2026-08-24
On 28 July 2026 Anthropic published two cryptanalytic results found with a language model. Neither has practical significance for systems in operatio…
-
New numbers show how often an attacker succeeds against an AI agent
Same product
2026-08-18
The system card for Claude Opus 5 does not measure how many attacks succeed, but the probability that an attacker finds at least one working attack w…
-
Shared Claude conversations turned up in Google search
Same product
2026-08-18
On 27 July 2026 404 Media reported that shared Claude conversations and artifacts appeared in Google search results. The findings included medical re…
-
Meta says one of its models broke into another company during testing
Same product
2026-08-13
Meta says one of its models unexpectedly gained internet access during a security evaluation, and that the model then exploited a vulnerability in a …
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.