CVE-2026-41686

Claude SDK for TypeScript has Insecure Default File Permissions in Local Filesystem Memory Tool

Published May 4, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Between versions 0.79.0 and before 0.91.1 of the Claude SDK for TypeScript, the BetaLocalFilesystemMemoryTool creates temporary files and directories with Node.js default permissions (0o666 for files, 0o777 for directories). This allows the files to be world‑readable and, on systems with a permissive umask, world‑writable. A local attacker on a shared host could read persisted agent state, and in containerized deployments could modify these memory files to influence subsequent model behavior. The weakness is classified as CWE‑732 (Incorrect Permissions).

Affected Systems

The vulnerability affects the Anthropics Anthropic‑SDK‑Typescript package. Versions from 0.79.0 up to, but not including, 0.91.1 are impacted. The issue was patched in version 0.91.1.

Risk and Exploitability

The CVSS score is 4.8, indicating a moderate risk. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is local or container-based; an attacker with access to the host or container filesystem can exploit the insecure file permissions directly. The impact is limited to the environment where the SDK is deployed and does not provide remote code execution or network‑exposed access.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade anthropic-sdk-typescript to version 0.91.1 or later to eliminate the insecure file permission behavior.
  • If an immediate upgrade is not possible, configure the container or host umask to restrict file creation permissions, preventing the SDK from creating world‑readable or world‑writable files.
  • Where available, direct the SDK to use a custom temporary directory with restrictive permissions or apply explicit permission checks after file creation to enforce secure defaults.

Generated by OpenCVE AI on May 4, 2026 at 20:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-p7fg-763f-g4gf Claude SDK for TypeScript has Insecure Default File Permissions in Local Filesystem Memory Tool
History
Type Values Removed Values Added
First Time appeared Anthropic
Anthropic claude Sdk For Typescript
CPEs cpe:2.3:a:anthropic:claude_sdk_for_typescript:*:*:*:*:*:*:*:*
Vendors & Products Anthropic
Anthropic claude Sdk For Typescript
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Anthropics
Anthropics anthropic-sdk-typescript
Vendors & Products Anthropics
Anthropics anthropic-sdk-typescript
Type Values Removed Values Added
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.
Title Claude SDK for TypeScript has Insecure Default File Permissions in Local Filesystem Memory Tool
Weaknesses CWE-732
References
Metrics cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-732

    Incorrect Permission Assignment for Critical Resource

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 5, 2026, 2:38 PM
Reserved
Apr 22, 2026, 3:53 AM
Status
Analyzed
Published
May 4, 2026, 7:16 PM
Modified
Oct 26, 2026, 7:10 PM