CVE-2026-41686
JSON

4.8medium

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

Severity
4.8medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.12% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-p7fg-763f-g4gf

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.

Affected

Product or packageVersionsReported by
anthropics anthropic-sdk-typescript>= 0.79.0, < 0.91.1CVE List
@anthropic-ai/sdk (npm)from 0.79.0 before 0.91.1GitHub Advisory Database
anthropic claude_sdk_for_typescriptfrom 0.79.0 before 0.91.1NVD

All scores

GitHub_M4.8medium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
NVD4.4medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Classification

CWE-732

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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 (es)

El SDK de Claude para TypeScript proporciona acceso a la API de Claude desde aplicaciones TypeScript o JavaScript del lado del servidor. Desde la versión 0.79.0 hasta antes de la versión 0.91.1, la herramienta BetaLocalFilesystemMemoryTool en el SDK de Anthropic para TypeScript creaba archivos y directorios de memoria utilizando los modos predeterminados de Node.js (0o666 para archivos, 0o777 para directorios), dejándolos legibles para todos en sistemas con un umask estándar y escribibles para todos en entornos con un umask permisivo, como muchas imágenes base de Docker. Un atacante local en un host compartido podría leer el estado persistido del agente, y en implementaciones en contenedores podría modificar los archivos de memoria para influir en el comportamiento posterior del modelo. Este problema ha sido parcheado en la versión 0.91.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-41686 changed 2026-05-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-p7fg-763f-g4gf changed 2026-05-08CC-BY-4.0
NVDCVE-2026-41686 changed 2026-10-26Public domain