GHSA-pq7j-f95f-qfcv

Suggest an improvement
Source
https://github.com/advisories/GHSA-pq7j-f95f-qfcv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-pq7j-f95f-qfcv/GHSA-pq7j-f95f-qfcv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-pq7j-f95f-qfcv
Aliases
Published
2026-10-15T20:22:07Z
Modified
2026-10-15T20:30:08Z
Severity
  • 7.5 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Claude Code: Plugin Hash Pin Bypass Allows Bypass of Hash Pinning
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-494",
        "CWE-829"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-10-15T20:22:07Z",
    "nvd_published_at":  "2026-10-13T19:21:21Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / @anthropic-ai/claude-code

Package

Name
@anthropic-ai/claude-code
View open source insights on deps.dev
Purl
pkg:npm/%40anthropic-ai/claude-code

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.1.179

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-pq7j-f95f-qfcv/GHSA-pq7j-f95f-qfcv.json"