In short
- CVE-2026-41686 is a MEDIUM (CVSS 4.4) vulnerability affecting claude sdk for typescript (anthropic), @anthropic-ai/sdk.
- Chance of exploitation in the next 30 days (EPSS): 0.12%, higher than 1.8% of all vulnerabilities.
- Fix: update to 0.91.1 or later.
Description
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.
NVD 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.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.
More vulnerabilities in claude sdk for typescript
See all →Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free