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 · Vendor: https://github.com/anthropics/anthropic-sdk-typescript
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local access to host or container
  2. Delivery
    Identify BetaLocalFilesystemMemoryTool memory directory
  3. Exploit
    Read world-readable memory files (all environments)
  4. Execution
    Overwrite world-writable memory files (permissive-umask environments)
  5. Impact
    Influence subsequent agent model behavior via injected state

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V13 - Configuration Permission assignment review
Exploitation Conditions

Exploitation requires that: (1) the application instantiates BetaLocalFilesystemMemoryTool - this is a beta, opt-in feature, not enabled by default for all SDK users; (2) the attacker has local user access to the same host or container where the memory directory resides (AV:L per CVSS 4.0); (3) for integrity impact, the deployment environment uses a permissive umask such as 0000, most commonly seen in Docker base images. On standard Linux systems with umask 0022, exploitation is limited to read-only access to agent memory files. Exploitation is limited by: requirement for local (not network) access, the beta/opt-in nature of the affected feature, and the need for a co-resident attacker. Remote or unauthenticated exploitation is not possible. There is no requirement for any victim action or UI interaction.

Impact

The CVSS 4.0 base score of 4.8 (Medium) with vector AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N accurately reflects a low-barrier local attack with bounded impact. The EPSS score of 0.01% (2nd percentile) is consistent with the absence of public exploit code and the SSVC assessment of exploitation: none, automatable: no, technical impact: partial - meaning this is not a commodity attack candidate. The real-world risk bifurcates sharply by deployment context: on a standard single-user host with umask 022, impact is confidentiality-only (agent state readable by co-resident local users); in Docker environments with permissive umasks, integrity impact is added because memory files become world-writable, allowing an attacker to inject false memories and influence subsequent agent decisions. The latter scenario - prompt-injection via filesystem - is the more serious threat model for AI-agent pipelines, though it requires local access within the container. No signals of active exploitation exist. The primary priority signal for patching is deployment environment, not CVSS score.

Exploit ScenarioDerived

A local attacker with shell access to a shared host or to the same Docker container where a Claude agent is running locates the memory directory created by BetaLocalFilesystemMemoryTool. In a Docker environment with a permissive umask, the attacker overwrites a memory file with fabricated agent-state content - for example, injecting false prior context - causing the model to act on manipulated memory in a subsequent invocation. No public proof-of-concept exploit exists; the attack path requires only standard filesystem utilities.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

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.

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.

Affected VersionsENISA

anthropic-sdk-typescript 0.79.0, < 0.91.1

Affected Packages

npm @anthropic-ai/sdk fix: 0.91.1
euvd anthropic_sdk_typescript_0_79_0 fix: 0.91.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/anthropics/anthropic-sdk-typescript) 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
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 Vendor (https://github.com/anthropics/anthropic-sdk-typescript).

CVSS VectorVendor: https://github.com/anthropics/anthropic-sdk-typescript

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
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

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Prevalence
Medium
popular Claude AI SDK on npm, but affected feature is beta and opt-in
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

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