Skip to main content

Anthropic TypeScript SDK CVE-2026-41686

| EUVDEUVD-2026-27087 MEDIUM
Incorrect Permission Assignment for Critical Resource (CWE-732)
2026-04-29 https://github.com/anthropics/anthropic-sdk-typescript GHSA-p7fg-763f-g4gf
4.8
CVSS 4.0 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
4.8 MEDIUM
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
4.4 MEDIUM

Local vector and low privileges required to access filesystem; low C and I reflecting readable and (in permissive-umask environments) writable agent state; no availability impact.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

5
Source Code Evidence Fetched
Jul 24, 2026 - 01:21 vuln.today
Analysis Generated
Jul 24, 2026 - 01:21 vuln.today
Patch available
May 04, 2026 - 20:01 EUVD
CVSS changed
May 04, 2026 - 19:22 NVD
4.8 (MEDIUM)
CVE Published
Apr 29, 2026 - 22:28 nvd
MEDIUM

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 48 npm packages depend on @anthropic-ai/sdk (47 direct, 1 indirect)

Ecosystem-wide dependent count for version 0.79.0.

DescriptionGitHub Advisory

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.

AnalysisAI

Insecure default file permissions in the Anthropic TypeScript SDK's BetaLocalFilesystemMemoryTool expose persisted agent state to local read access and, in Docker deployments with permissive umasks, enable local users to overwrite memory files and manipulate subsequent model behavior. Affected versions span @anthropic-ai/sdk 0.79.0 through 0.91.0; a fix is available in 0.91.1. No public exploit exists and exploitation has not been observed (SSVC: none), with an EPSS score of 0.01% placing this in the 2nd percentile - risk is real but narrowly scoped to shared-host or containerized deployments.

Technical ContextAI

The BetaLocalFilesystemMemoryTool is a beta component in the @anthropic-ai/sdk npm package (CPE: pkg:npm/@anthropic-ai_sdk) that provides Claude agents with persistent local filesystem memory. The tool called Node.js filesystem APIs without specifying explicit permission modes, causing created files to inherit the Node.js platform defaults - 0o666 for files and 0o777 for directories. CWE-732 (Incorrect Permission Assignment for Critical Resource) describes this class of flaw precisely: permissions are assigned without regard for the sensitivity of the resource. On systems with a standard umask of 0022, files resolve to 0o644 (world-readable); in Docker base images that commonly set umask 0000 (or similarly permissive values), files resolve to 0o666 and directories to 0o777, making agent memory both globally readable and writable by any process or user in the container. This is particularly significant in multi-tenant or shared-pid-namespace container environments.

RemediationAI

Update @anthropic-ai/sdk to version 0.91.1 or later, which applies explicit restrictive permission modes when creating memory files and directories. The fix can be applied via npm install @anthropic-ai/sdk@^0.91.1 or equivalent. The GitHub Security Advisory is at https://github.com/anthropics/anthropic-sdk-typescript/security/advisories/GHSA-p7fg-763f-g4gf. If an immediate upgrade is not possible, restrict access to the directory used by BetaLocalFilesystemMemoryTool by manually applying chmod 700 to the memory directory after creation - this removes world-read and world-write access but requires re-application whenever the directory is recreated. In Docker deployments, explicitly set umask 0027 or stricter in the container entrypoint to mitigate the world-writable directory condition; note this affects all file creation in the process, not only SDK memory. Do not rely on Docker network isolation alone, as the threat model involves intra-container local access.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

CVE-2025-34221 CRITICAL POC
10.0 Sep 29

Vasion Print (formerly PrinterLogic) Virtual Appliance Host prior to version 25.2.169 and Application prior to version 2

Share

CVE-2026-41686 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy