npmWorst: High30 advisories

@anthropic-ai/claude-code: known vulnerabilities

@anthropic-ai/claude-code has 30 reviewed security advisories in the GitHub Advisory Database — 24 high, 4 moderate, 2 low. The most recent was published 2026-11-03. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the @anthropic-ai/claude-code versions running across your servers, containers and images, and ranks what to patch first.

How to fix @anthropic-ai/claude-code

Upgrade @anthropic-ai/claude-code to a release at or above the fixed version shown for each advisory below. For npm:

npm install @anthropic-ai/claude-code@2.1.251 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (30)

Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace High CWE-367 CWE-59 — Affected: before 2.1.251. Fixed in 2.1.251. Published 2026-11-03. GHSA-5xjx-9qx6-jcrv · CVE-2026-88968
Claude Code: Plugin Hash Pin Bypass Allows Bypass of Hash Pinning High CWE-494 CWE-829 — Affected: before 2.1.179. Fixed in 2.1.179. Published 2026-10-13. GHSA-pq7j-f95f-qfcv · CVE-2026-86063
Claude Code: Sandbox Escape via Git Worktree Path Confusion Allows Unsandboxed Code Execution High CWE-22 CWE-59 CWE-78 — Affected: from 2.1.38 up to 2.1.163. Fixed in 2.1.163. Published 2026-06-29. GHSA-7835-87q9-rgvv · CVE-2026-55607
@anthropic-ai/claude-code has an Insecure Temporary File in /copy Command that Enables Response Disclosure and Symlink-Based File Write Moderate CWE-200 CWE-377 CWE-59 — Affected: from 2.1.59 up to 2.1.128. Fixed in 2.1.128. Published 2026-06-25. GHSA-4vp2-6q8c-pvq2 · CVE-2026-46406
Claude Code: Out-of-Band Data Exfiltration via Pre-Approved HuggingFace Domain in WebFetch Moderate 9.1 CWE-183 CWE-200 CWE-515 — Affected: from 0.2.54 up to 2.1.163. Fixed in 2.1.163. Published 2026-06-23. GHSA-fg94-h982-f3mm · CVE-2026-54316
Claude Code: Trust Dialog Bypass via Git Worktree Spoofing Allows Arbitrary Code Execution High CWE-20 CWE-77 — Affected: from 2.1.63 up to 2.1.84. Fixed in 2.1.84. Published 2026-05-05. GHSA-q5hj-mxqh-vv77 · CVE-2026-40068
Claude Code: Sandbox Escape via Symlink Following Allows Arbitrary File Write Outside Workspace High 10.0 CWE-22 CWE-61 — Affected: before 2.1.64. Fixed in 2.1.64. Published 2026-04-21. GHSA-vp62-r36r-9xqp · CVE-2026-39861
Claude Code: Insecure System-Wide Configuration Loading Enables Local Privilege Escalation on Windows Moderate 7.3 CWE-426 — Affected: before 2.1.75. Fixed in 2.1.75. Published 2026-04-17. GHSA-5cwg-9f6j-9jvx · CVE-2026-35603
Claude Code has a Workspace Trust Dialog Bypass via Repo-Controlled Settings File High CWE-807 — Affected: before 2.1.53. Fixed in 2.1.53. Published 2026-03-20. GHSA-mmgp-wc2j-qcv7 · CVE-2026-33068
Claude Code has Permission Deny Bypass Through Symbolic Links Low CWE-285 CWE-61 — Affected: before 2.1.7. Fixed in 2.1.7. Published 2026-02-06. GHSA-4q92-rfm6-2cqx · CVE-2026-25724
Claude Code Vulnerable to Command Injection via Directory Change Bypasses Write Protection High CWE-20 CWE-78 — Affected: before 2.0.57. Fixed in 2.0.57. Published 2026-02-06. GHSA-66q4-vfjg-2qhh · CVE-2026-25722
Claude Code has Sandbox Escape via Persistent Configuration Injection in settings.json High CWE-501 CWE-668 — Affected: before 2.1.2. Fixed in 2.1.2. Published 2026-02-06. GHSA-ff64-7w26-62rf · CVE-2026-25725
Claude Code Vulnerable to Command Injection via Piped sed Command Bypasses File Write Restrictions High CWE-20 CWE-78 — Affected: before 2.0.55. Fixed in 2.0.55. Published 2026-02-06. GHSA-mhg7-666j-cqg4 · CVE-2026-25723
Claude Code has a Path Restriction Bypass via ZSH Clobber which Allows Arbitrary File Writes High CWE-22 CWE-78 — Affected: before 2.0.74. Fixed in 2.0.74. Published 2026-02-03. GHSA-q728-gf8j-w49r · CVE-2026-24053
Claude Code has a Command Injection in find Command Bypasses User Approval Prompt High CWE-78 CWE-94 — Affected: before 2.0.72. Fixed in 2.0.72. Published 2026-02-03. GHSA-qgqw-h4xq-7w8w · CVE-2026-24887
Claude Code has a Domain Validation Bypass which Allows Automatic Requests to Attacker-Controlled Domains High CWE-601 — Affected: before 1.0.111. Fixed in 1.0.111. Published 2026-02-03. GHSA-vhw5-3g5m-8ggf · CVE-2026-24052
Claude Code Leaks Data via Malicious Environment Configuration Before Trust Confirmation Moderate CWE-522 — Affected: before 2.0.65. Fixed in 2.0.65. Published 2026-01-21. GHSA-jh7p-qr78-84p7 · CVE-2026-21852
Claude Code Command Validation Bypass Allows Arbitrary Code Execution High CWE-20 CWE-77 — Affected: before 1.0.93. Fixed in 1.0.93. Published 2025-12-03. GHSA-xq4m-mc3c-vvg3 · CVE-2025-66032
@anthropic-ai/claude-code has Sed Command Validation Bypass that Allows Arbitrary File Writes High CWE-78 — Affected: before 2.0.31. Fixed in 2.0.31. Published 2025-11-21. GHSA-7mv8-j34q-vp7q · CVE-2025-64755
Claude Code vulnerable to command execution prior to startup trust dialog High CWE-94 — Affected: before 1.0.39. Fixed in 1.0.39. Published 2025-11-19. GHSA-5hhx-v7f6-x7gv · CVE-2025-65099
Claude Code can execute commands prior to the startup trust dialog High CWE-94 — Affected: before 1.0.111. Fixed in 1.0.111. Published 2025-10-03. GHSA-4fgq-fpq9-mr3g · CVE-2025-59536
Claude Code permission deny bypass through symlink Low CWE-61 — Affected: before 1.0.120. Fixed in 1.0.120. Published 2025-10-03. GHSA-66m2-gx93-v996 · CVE-2025-59829
Claude Code Vulnerable to Arbitrary Code Execution via Plugin Autoloading with Specific Yarn Versions High CWE-829 CWE-862 — Affected: before 1.0.39. Fixed in 1.0.39. Published 2025-09-24. GHSA-2jjv-qf24-vfm4 · CVE-2025-59828
Claude Code vulnerable to arbitrary code execution caused by maliciously configured git email High CWE-78 CWE-94 — Affected: before 1.0.105. Fixed in 1.0.105. Published 2025-09-10. GHSA-j4h9-wv2m-wrf7 · CVE-2025-59041
Claude Code rg vulnerability does not protect against approval prompt bypass High CWE-94 — Affected: before 1.0.105. Fixed in 1.0.105. Published 2025-09-10. GHSA-qxfv-fcpc-w36x · CVE-2025-58764
Claude Code Vulnerable to Arbitrary Code Execution Due to Insufficient Startup Warning High CWE-94 — Affected: before 1.0.87. Fixed in 1.0.87. Published 2025-09-03. GHSA-ph6w-f82w-28w6
Claude Code's Permissive Default Allowlist Enables Unauthorized File Read and Network Exfiltration in Claude Code High CWE-78 — Affected: before 1.0.4. Fixed in 1.0.4. Published 2025-08-16. GHSA-x5gv-jw7f-j6xj · CVE-2025-55284
Claude Code Research Preview has a Path Restriction Bypass which could allow unauthorized file access High CWE-22 — Affected: before 0.2.111. Fixed in 0.2.111. Published 2025-08-05. GHSA-pmw4-pwvc-3hx2 · CVE-2025-54794
Claude Code echo command allowed bypass of user approval prompt for command execution High CWE-78 — Affected: before 1.0.20. Fixed in 1.0.20. Published 2025-08-05. GHSA-x56v-x2h6-7j34 · CVE-2025-54795
Claude Code Improper Authorization via websocket connections from arbitrary origins High CWE-1385 CWE-285 — Affected: from 0.2.116 up to 1.0.24. Fixed in 1.0.24. Published 2025-06-24. GHSA-9f65-56v6-gxw7 · CVE-2025-52882

Find @anthropic-ai/claude-code across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.