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

Published Mar 31, 2026
·
Updated

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.

Other sources

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!

GitHub

Affected Software

3 affected componentsFixes available
npm/claude-sdk>=0.79.0<0.81.0
npm/@anthropic-ai/sdk>=0.79.0<0.81.0
0.81.0
Anthropic Claude SDK for TypeScript>=0.79.0<0.81.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@anthropic-ai/sdk to a version that resolves this vulnerability.

    Fixed in 0.81.0
  2. Upgrade

    Upgrade Claude SDK for TypeScript to a version that resolves this vulnerability.

    Fixed in 0.81.0

Event History

Mar 31, 2026
CVE Published
via MITRE·09:35 PM
Data Sourced
via MITRE·09:35 PM
DescriptionWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
RemedyAffected Software
Apr 1, 2026
Advisory Published
via GitHub·09:16 PM
Data Sourced
via GitHub·09:16 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-34451?

CVE-2026-34451 is classified as a critical vulnerability due to its potential for sandbox escape affecting local file systems.

2

How do I fix CVE-2026-34451?

To fix CVE-2026-34451, update the Claude SDK for TypeScript to version 0.81.0 or later.

3

What versions of Claude SDK for TypeScript are affected by CVE-2026-34451?

CVE-2026-34451 affects Claude SDK for TypeScript versions from 0.79.0 to before 0.81.0.

4

What types of applications are impacted by CVE-2026-34451?

CVE-2026-34451 impacts server-side TypeScript or JavaScript applications using the Claude SDK.

5

What does CVE-2026-34451 allow an attacker to do?

CVE-2026-34451 allows attackers to potentially escape the sandbox and access sibling directories, compromising security.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203