Claude Code plugin install could skip the pinned code version and install attacker code
- Product
- Claude Code
- CVE
- CVE-2026-86063
- Affected
- npm/@anthropic-ai/claude-code < 2.1.179
- Fixed in
- 2.1.179
Last verified against sources: October 26, 2026
Am I affected?
Claude Code: affected npm/@anthropic-ai/claude-code < 2.1.179. Fixed in 2.1.179.
- Check your version: run
npm ls @anthropic-ai/claude-code. Versions < 2.1.179 of @anthropic-ai/claude-code are affected. [1]
What to do now
- Upgrade to the fixed version: run
npm install @anthropic-ai/claude-code@2.1.179(first patched version 2.1.179). [1] - If you use standard Claude Code auto-update, you have already received the fix. [1]
- If you update manually, update to the latest version. [1]
General practice, not from the source: if the affected software could read tokens or credentials, rotate them after upgrading; pin versions and review changes before updating tools your agents run.
What happened
- The plugin install flow in Claude Code and Claude Desktop used the
git checkoutcommand to fetch a marketplace's pinned commit SHA. [1] - That flow did not check that the code it ended up with matched the pinned SHA. [1]
- An attacker who controlled a plugin's upstream repository could make a branch named exactly like the pinned 40-character SHA. [1]
- The checkout then quietly used the attacker's branch tip instead of the reviewed commit, so attacker-controlled code was installed and the pinned hash was bypassed. [1]
Impact
What was done
Sources
- GHSA-pq7j-f95f-qfcv — GitHub Advisory Database
Every statement above was checked against these sources before publishing. Spotted an error? Tell us and we will correct it with a dated note.
Share advisory brief with your team
Copy a plain-text summary for Slack, GitHub issues, or team security channels.
[CVE-2026-86063] Claude Code plugin install could skip the pinned code version and install attacker code
Product: Claude Code | Affected: npm/@anthropic-ai/claude-code < 2.1.179 | Fixed in: 2.1.179
Summary: The plugin install flow in Claude Code and Claude Desktop used the `git checkout` command to fetch a marketplace's pinned commit SHA.
Source & remediation on AgentArmorHQ: https://agentarmorhq.com/incidents/2026/10/cve-2026-86063-claude-codeCorrections
Report an error or request a correction. We review requests within 5 business days and add a dated correction note.
Discussions for CVE-2026-86063
Ask questions or share configuration tips. Governed by our Community Rules & Terms.
No posts match this filter yet.
Be the first to ask a question or share a working tip.