CVE-2026-34451: Claude SDK for TypeScript Memory Tool Path Validation Allows Vulnerability
MODERATECVE-2026-34451 is a MODERATE (CVSS 5.4) memory tool path validation allows vulnerability (CWE-41: Improper Resolution of Path Equivalence) affecting Claude SDK for TypeScript libraries in the npm ecosystem. The issue involves memory tool path validation allows sandbox escape to sibling directories. Remediation is available by upgrading affected packages to version 0.81.0.
CVE-2026-34451 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N).
How to Fix CVE-2026-34451
To remediate this vulnerability, upgrade all affected Claude SDK for TypeScript dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @anthropic-ai/sdk@0.81.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @anthropic-ai/sdk
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-34451, inspect your project dependencies using npm:
npm ls @anthropic-ai/sdk
Analyze the terminal output to locate any version of Claude SDK for TypeScript in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.81.0), your application is affected.
Note: The npm ls @anthropic-ai/sdk command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-41: Improper Resolution of Path Equivalence, where 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 generate multiple names for the same object. In Claude SDK for TypeScript, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-34451 Affected Claude SDK for TypeScript Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@anthropic-ai/sdk
|
npm |
≥ 0.79.0
< 0.81.0
|
0.81.0
|
References
Frequently Asked Questions
What is CVE-2026-34451?
Which Claude SDK for TypeScript versions are affected?
What version fixes CVE-2026-34451?
Is @anthropic-ai/sdk affected?
What is the CVSS score of CVE-2026-34451?
What CWE is associated with CVE-2026-34451?
How can I check npm dependencies for CVE-2026-34451?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5474-4w2j-mq4c",
"modified" : "2026-04-24T20:59:12Z",
"published" : "2026-04-01T21:16:49Z",
"aliases" : [ "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.\n\nUsers on the affected versions are advised to update to the latest version.\n\nClaude SDK for TypeScript thanks [hackerone.com/nicksim](https://hackerone.com/nicksim) for reporting this issue!",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@anthropic-ai/sdk"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.79.0"
}, {
"fixed" : "0.81.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/anthropics/anthropic-sdk-typescript/security/advisories/GHSA-5474-4w2j-mq4c"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-34451"
}, {
"type" : "WEB",
"url" : "https://github.com/anthropics/anthropic-sdk-typescript/commit/0ac69b3438ee9c96b21a7d3c39c07b7cdb6995d9"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/anthropics/anthropic-sdk-typescript"
}, {
"type" : "WEB",
"url" : "https://github.com/anthropics/anthropic-sdk-typescript/releases/tag/sdk-v0.81.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-41" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-01T21:16:49Z",
"nvd_published_at" : "2026-03-31T22:16:20Z"
}
}