Skip to content

Claude Code vulnerabilities: every published security advisory

All 32 security advisories Anthropic has published for Claude Code, with CVE, severity and fixed version, what each one needed to be exploited, and how to check you’re patched.

6 min read

Anthropic has published 32 security advisories for the Claude Code command-line tool and its npm package, from June 2025 to October 26, 2026. Twenty-five are rated high, four medium and three low; none is rated critical. Every one has a fixed version, so the practical step is the same for all of them: run a current release. Check yours with claude --version and compare it with the highest fixed version in the table, 2.1.260.

32 advisories, Jun 23, 2025 to Oct 26, 2026

Every one is fixed in Claude Code 2.1.260 or later.

32Published advisories
25Rated high
7Medium or low
32Have a fixed version

The list below comes from the advisories Anthropic publishes on the anthropics/claude-code security page, read on December 2, 2026. Four advisories that affect only the Claude Desktop app are left out. Each summary is written from the advisory’s own description; follow the ID for the full text and the affected version range.

What most of them have in common

Almost none of these can be triggered by a stranger out of nowhere. The advisories name a condition, and the same few come up again and again:

Condition in the advisoryWhat it means in practice
“Untrusted content could be added to the context window”The attack works through prompt injection: text in a file, web page, issue or tool result tells the agent to run a command that slips past a validation check.
A malicious repository or directoryYou clone or open a project that someone prepared, and code runs or settings apply before you accept the trust dialog.
Code already running in the sandboxA dependency script or other code inside the Bash sandbox uses a race or a symlink to write outside it.
Another user on the same machineA local, lower-privileged user reads or plants a file in a shared location. Mostly a concern on shared servers.

By theme, the biggest groups are command-validation bypasses (a command such as echo, rg, find or sed parsed in a way that skipped the approval prompt), trust-dialog bypasses that let a repository run code or set the permission mode before you agreed, and sandbox or symlink escapes that let a write land outside the project. A smaller group let data leave through domain checks: one pre-approved huggingface.co for web fetches, another matched trusted domains with a prefix check that look-alike domains passed.

Every advisory

PublishedAdvisoryWhat it allowed
GHSA-5xjx-9qx6-jcrvHigh · CVE-2026-88968
On macOS, code running inside the Bash sandbox (e.g. via a malicious repository or dependency script) could win a TOCTOU race by swapping a parent directory for a symlink, making the unsandboxed Edit tool overwrite a user-writable file outside the workspace. Fixed in 2.1.251
GHSA-pq7j-f95f-qfcvHigh · CVE-2026-86063
The plugin install flow did not verify that the checked-out HEAD matched the pinned commit SHA, so an attacker controlling a plugin's upstream repo could use a SHA-named branch to get attacker code installed when a user installs the plugin. Fixed in 2.1.179
GHSA-5j29-h97v-84chHigh · CVE-2026-103435
Claude Code checked a write path was inside the project at permission time but re-resolved it at write time, so an attacker with workspace write access who wins a race could swap in a symlink and redirect a write to a file outside the project (e.g. shell config). Fixed in 2.1.129
GHSA-gfvf-j8jh-jxxwLow · CVE-2026-103012
Claude Code preferred a stored API key over the user's Enterprise/Team sign-in when fetching server-managed settings, so if the key was rejected the session started without the organization's policy (or kept applying a stale cached copy). Fixed in 2.1.260
GHSA-7835-87q9-rgvvHigh · CVE-2026-55607
Worktree handling allowed worktrees named ".git" and navigation outside the sandbox, so with a cloned malicious repo containing prompt injection an attacker could overwrite home-directory files such as .zshenv and get code execution outside the seatbelt sandbox. Fixed in 2.1.163
GHSA-4vp2-6q8c-pvq2Medium · CVE-2026-46406
The /copy command wrote responses to a predictable, world-readable /tmp/claude/response.md without symlink protection, letting a local unprivileged user on the same system read a privileged user's response or plant a symlink to overwrite a file. Fixed in 2.1.128
GHSA-fg94-h982-f3mmMedium · CVE-2026-54316
Because huggingface.co was pre-approved as a bare hostname for WebFetch, an attacker able to inject untrusted content into context could make Claude issue unprompted requests to attacker-controlled HuggingFace repos as a covert channel to exfiltrate data. Fixed in 2.1.163
GHSA-q5hj-mxqh-vv77High · CVE-2026-40068
Claude Code trusted the unvalidated git worktree commondir file when deciding folder trust, so a malicious cloned repo pointing it at a previously trusted path could skip the trust dialog and run hooks from .claude/settings.json. Fixed in 2.1.84
GHSA-vp62-r36r-9xqpHigh · CVE-2026-39861
The sandbox did not stop sandboxed processes from creating symlinks to outside locations, so Claude Code's unsandboxed process could then write through them to arbitrary paths, a sandbox escape exploitable when untrusted content reaches the context window. Fixed in 2.1.64
GHSA-5cwg-9f6j-9jvxMedium · CVE-2026-35603
On Windows, Claude Code loaded managed-settings.json from C:\ProgramData\ClaudeCode without checking ownership or permissions, so a low-privileged local user on a shared machine could plant a malicious config loaded for other users. Fixed in 2.1.75
GHSA-mmgp-wc2j-qcv7High · CVE-2026-33068
Claude Code read the permission mode from repo-controlled .claude/settings.json before showing the trust dialog, so a malicious repository could set bypassPermissions and silently skip the workspace trust prompt on first open. Fixed in 2.1.53
GHSA-66q4-vfjg-2qhhHigh · CVE-2026-25722
Using cd to enter protected directories like .claude combined with write operations bypassed write protection and allowed file creation or modification without confirmation, when untrusted content could be added to the context window. Fixed in 2.0.57
GHSA-mhg7-666j-cqg4High · CVE-2026-25723
Piped sed with echo commands bypassed file write restrictions, allowing writes to sensitive directories like .claude and paths outside the project when commands could be executed with accept-edits enabled. Fixed in 2.0.55
GHSA-ff64-7w26-62rfHigh · CVE-2026-25725
On Linux the bubblewrap sandbox did not protect .claude/settings.json when it did not exist at startup, so code inside the sandbox could create it and inject persistent hooks (e.g. SessionStart) that run with host privileges on restart. Fixed in 2.1.2
GHSA-4q92-rfm6-2cqxLow · CVE-2026-25724
Deny rules in settings.json were not strictly enforced through symbolic links, so Claude Code could read an explicitly denied file (such as /etc/passwd) via a symlink pointing to it. Fixed in 2.1.7
GHSA-qgqw-h4xq-7w8wHigh · CVE-2026-24887
A command-parsing error in the find command bypassed the confirmation prompt and allowed execution of untrusted commands when an attacker could add untrusted content to the context window. Fixed in 2.0.72
GHSA-q728-gf8j-w49rHigh · CVE-2026-24053
A Bash validation flaw in ZSH clobber syntax allowed writing files outside the working directory without a permission prompt, for ZSH users when untrusted content could enter the context window. Fixed in 2.0.74
GHSA-vhw5-3g5m-8ggfHigh · CVE-2026-24052
Trusted-domain checks for WebFetch used startsWith(), so look-alike domains such as modelcontextprotocol.io.example.com passed validation and enabled automatic requests to attacker-controlled domains, potentially exfiltrating data. Fixed in 1.0.111
GHSA-jh7p-qr78-84p7Medium · CVE-2026-21852
A malicious repository could set ANTHROPIC_BASE_URL in its settings file so Claude Code sent API requests (potentially leaking the user's API key) to an attacker endpoint before the trust prompt was shown. Fixed in 2.0.65
GHSA-xq4m-mc3c-vvg3High · CVE-2025-66032
Errors parsing shell commands involving $IFS and short CLI flags bypassed read-only validation and allowed arbitrary code execution when untrusted content could be added to the context window. Fixed in 1.0.93
GHSA-7mv8-j34q-vp7qHigh · CVE-2025-64755
An error in sed command parsing bypassed read-only validation and allowed writing to arbitrary files on the host system. Fixed in 2.0.31
GHSA-5hhx-v7f6-x7gvHigh · CVE-2025-65099
With Yarn installed, Yarn config files (plugins, yarnPath) could run code via yarn --version before the user accepted the directory trust dialog, bypassing it in an untrusted directory. Fixed in 1.0.39
GHSA-66m2-gx93-v996Low · CVE-2025-59829
Permission deny rules did not account for symlinks, so Claude Code could access an explicitly denied file through a symlink pointing to it. Fixed in 1.0.120
GHSA-4fgq-fpq9-mr3gHigh · CVE-2025-59536
A bug in the startup trust dialog let code in a project execute before the user accepted the dialog, when starting Claude Code in an untrusted directory. Fixed in 1.0.111
GHSA-2jjv-qf24-vfm4High · CVE-2025-59828
With Yarn installed, Yarn config files (plugins, yarnPath) could run code via yarn --version before the user accepted the directory trust dialog, bypassing it in an untrusted directory. Fixed in 1.0.39
GHSA-j4h9-wv2m-wrf7High · CVE-2025-59041
At startup Claude Code ran a command templated with git config user.email, so a maliciously configured git email could trigger arbitrary code execution before the user accepted the workspace trust dialog. Fixed in 1.0.105
GHSA-qxfv-fcpc-w36xHigh · CVE-2025-58764
A command-parsing error in the rg command bypassed the confirmation prompt and let an untrusted command run, when untrusted content could be added to the context window. Fixed in 1.0.105
The "Do you trust the files in this folder?" warning did not make clear that choosing "Yes, proceed" lets Claude Code execute files in the folder without further confirmation; the warning was reworded. Fixed in 1.0.87
GHSA-x5gv-jw7f-j6xjHigh · CVE-2025-55284
An overly broad safe-command allowlist let an attacker bypass confirmation prompts to read a file and send its contents over the network, when untrusted content could be added to the context window. Fixed in 1.0.4
GHSA-x56v-x2h6-7j34High · CVE-2025-54795
A command-parsing error in the echo command bypassed the confirmation prompt and allowed untrusted command execution, when untrusted content could be added to the context window. Fixed in 1.0.20
GHSA-pmw4-pwvc-3hx2High · CVE-2025-54794
Path validation used prefix matching instead of canonical comparison, so files outside the working directory could be accessed via a directory sharing the CWD's prefix, when untrusted content could enter the context window. Fixed in 0.2.111
GHSA-9f65-56v6-gxw7High · CVE-2025-52882
The VSCode-family and JetBrains Claude Code extensions accepted websocket connections from attacker webpages, letting a visited malicious site read files, see open files and IDE events, and in limited cases execute code. Fixed in 1.0.24

Two advisories, GHSA-2jjv-qf24-vfm4 and GHSA-5hhx-v7f6-x7gv, describe the same Yarn issue. One advisory, GHSA-ph6w-f82w-28w6, has no CVE and changed the wording of the trust warning rather than the code path. GHSA-9f65-56v6-gxw7 affected the VS Code-family and JetBrains extensions as well as the CLI.

What to do as a user

Update and keep updating. claude update installs the newest release. If your company pins versions, make sure the pin moves when an advisory lands.

Treat the trust dialog as a real decision. Several advisories were about code running before or around that prompt, and after the fix the dialog is still what stands between a cloned repository and your machine. Open unfamiliar repositories in a container or VM.

Keep approval prompts on outside a sandbox. Many of the command-validation bugs mattered because the agent could run a command without asking. If you use --dangerously-skip-permissions, do it in a disposable environment with no credentials you’d mind losing. What skipping permissions turns off · Claude Code’s sandbox · Claude Code permissions

What to do as a team

Track the advisory feed the way you track any dependency. GitHub can notify you of new advisories on the repository, and the CVEs flow into most vulnerability scanners that cover npm packages.

Set the version and the policy centrally. Claude Code reads managed settings that an organization controls. One low-severity advisory, GHSA-gfvf-j8jh-jxxw, is worth reading if you rely on them: in affected versions, a session that fell back from a rejected API key started without the organization’s policy.

Read the sessions, not just the versions. An advisory tells you a weakness existed; your session logs tell you whether anything odd happened while you were exposed. Excellent’s free scan reads supported agents’ logs on a Mac, including Claude Code’s, and reports force pushes, deletions in folders you mark as never-delete and keys that ended up in a log. With Pro, Excellent adds a live check that can ask or block before supported risky actions. Run the free scan · Is Claude Code safe? · Public AI agent incidents

Related guides

View all