AI 编程 4.0 · 优秀 2026-10-09 · GitHub

Claude Code plugin commit SHA pin bypass (CVE-2026-86063 / GHSA-pq7j-f95f-qfcv)

Claude Code/Desktop 官方安全公告(CVSS 4.0 7.7 High):插件安装流程用 git checkout 检出 marketplace 钉住的 commit SHA,但未验证结果 HEAD 是否等于该 SHA攻击者若控制插件上游仓库,可创建与 40 位 SHA 同名的分支,让 checkout 静默解析到攻击者分支顶端,绕过哈希钉住安装恶意代码2.1.179 修复,自动更新用户已覆盖;自建 marketplace/安装器应在 checkout 后校验 rev-parse HEAD

打开原文回到归档

Claude Code plugin commit SHA pin bypass (CVE-2026-86063 / GHSA-pq7j-f95f-qfcv)

要点 (中文)

Claude Code/Desktop 官方安全公告(CVSS 4.0 7.7 High):插件安装流程用 git checkout 检出 marketplace 钉住的 commit SHA,但未验证结果 HEAD 是否等于该 SHA。攻击者若控制插件上游仓库,可创建与 40 位 SHA 同名的分支,让 checkout 静默解析到攻击者分支顶端,绕过哈希钉住安装恶意代码。2.1.179 修复,自动更新用户已覆盖;自建 marketplace/安装器应在 checkout 后校验 rev-parse HEAD。

Key claims (English)

Claude Code advisory: the plugin install flow checked out pinned commit SHAs via git checkout without verifying the resulting HEAD matched, so SHA-shaped branch names could serve attacker-controlled code, bypassing the pin. Patched in 2.1.179.

Obsidian 证据摘录

GHSA-pq7j-f95f-qfcv 说明 pin 实现若只 checkout 不校验 HEAD,SHA 形分支可骗过。最小验证动作:确认本机 Claude Code ≥2.1.179;审自用插件安装脚本是否校验 HEAD。
—— Hermes 定时任务/X-每日简报/2026-10-11-X-seeds_ClaudeCode-WorkflowModel-Codex162-AmplifyingOct11.md

原文抓取(opencli web read,节选)

# Plugin Commit SHA Pin Bypass Allows Installation of Attacker
> 原文链接: https://github.com/anthropics/claude-code/security/advisories/GHSA-pq7j-f95f-qfcv

---

### Uh oh!

There was an error while loading. Please reload this page.

# Plugin Commit SHA Pin Bypass Allows Installation of Attacker-Controlled Code

High

[ddworken](https://github.com/ddworken) published GHSA-pq7j-f95f-qfcv Oct 9, 2026

## Package

 @anthropic-ai/claude-code ([npm](https://github.com/advisories?query=ecosystem%3Anpm))

## Affected versions

< 2.1.179

## Patched versions

2.1.179

## Description

The plugin install flow in Claude Code and Claude Desktop checked out a marketplace's pinned commit SHA using `git checkout` without verifying that the resulting HEAD matched the pinned SHA. An attacker controlling a plugin's upstream repository could create a branch named identically to the pinned 40-character SHA, causing the checkout to silently resolve to the attacker's branch tip instead of the reviewed commit, resulting in attacker-controlled code being installed bypassing the pinned hash. Exploitation required a user to install a malicious plugin, pin to a safe hash, and for the plugin source to be hosted on a git host that permitted SHA-shaped branch names.

Users on standard Claude Code auto-update have received this fix already. Users performing manual updates are advised to update to the latest version.

Thank you to Or Nevo Michrowski of Air Security for reporting this issue.

### Severity

High

7.7

/ 10

#### CVSS v4 base metrics

##### Exploitability Metrics

Attack Vector Network

Attack Complexity Low

Attack Requirements Present

Privileges Required None

User interaction Passive

##### Vulnerable System Impact Metrics

Confidentiality High

Integrity High

Availability High

##### Subsequent System Impact Metrics

Confidentiality None

Integrity None

Availability None

Learn more about base metrics

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

### CVE ID

CVE-2026-86063

### Weaknesses

Weakness CWE-494

#### [Download of Code Without Integrity Check](https://github.com/advisories?query=cwe%3A494)

The product downloads source code or an executable from a remote location and executes the code without sufficiently verifying the origin and integrity of the code. [Learn more on MITRE.](https://cwe.mitre.org/data/definitions/494.html)

Weakness CWE-829

#### [Inclusion of Functionality from Untrusted Control Sphere](https://github.com/advisories?query=cwe%3A829)

The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere. [Learn more on MITRE.](https://cwe.mitre.org/data/definitions/829.html)

链接