CVE-2026-41686: Claude SDK for TypeScript has Insecure Default File Permissions in Local Filesystem Memory Tool
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.91.1, the BetaLocalFilesystemMemoryTool in the Anthropic TypeScript SDK created memory files and directories using the Node.js default modes (0o666 for files, 0o777 for directories), leaving them world-readable on systems with a standard umask and world-writable in environments with a permissive umask such as many Docker base images. A local attacker on a shared host could read persisted agent state, and in containerized deployments could modify memory files to influence subsequent model behavior. This issue has been patched in version 0.91.1.
Other sources
The BetaLocalFilesystemMemoryTool in the Anthropic TypeScript SDK created memory files and directories using the Node.js default modes (0o666 for files, 0o777 for directories), leaving them world-readable on systems with a standard umask and world-writable in environments with a permissive umask such as many Docker base images. A local attacker on a shared host could read persisted agent state, and in containerized deployments could modify memory files to influence subsequent model behavior.
Users on the affected versions are advised to update to the latest version.
Claude SDK thanks lucasfutures for the report.
— GitHub
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-41686?
CVE-2026-41686 has a high severity due to its potential to expose files and directories to unauthorized users.
How do I fix CVE-2026-41686?
To fix CVE-2026-41686, update the @anthropic-ai/sdk package to version 0.91.1 or later.
Which versions of the @anthropic-ai/sdk are affected by CVE-2026-41686?
CVE-2026-41686 affects versions of the @anthropic-ai/sdk from 0.79.0 to 0.91.0.
What is the risk associated with CVE-2026-41686?
The risk of CVE-2026-41686 is that sensitive data may be exposed or modified due to improper file permissions.
Is CVE-2026-41686 a vulnerability present in Node.js applications?
Yes, CVE-2026-41686 primarily affects Node.js applications using the Anthropic TypeScript SDK due to default permission settings.