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.
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
- CWE-41: Improper Resolution of Path Equivalence
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-04-01 |
Timeline
- 2026-03-31Published by the CNA21:35 UTC
- 2026-04-01GitHub advisory published (GHSA-5474-4w2j-mq4c)1 day after publication
- 2026-04-01CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-5474-4w2j-mq4c, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm @anthropic-ai/sdk | from 0.79.0 before 0.81.0 | 0.81.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| anthropic claude_sdk_for_typescript | from 0.79.0 before 0.81.0fixed in 0.81.0 | 0.81.0 |
References
- https://github.com/anthropics/anthropic-sdk-typescript/commit/0ac69b3438ee9c96b21a7d3c39c07b7cdb6995d9
- https://github.com/anthropics/anthropic-sdk-typescript/security/advisories/GHSA-5474-4w2j-mq4c
- https://github.com/anthropics/anthropic-sdk-typescript/releases/tag/sdk-v0.81.0
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-34451'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-34451'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-34451'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-34451'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).