{"id":"CVE-2026-86063","aliases":["CVE-2026-86063","GHSA-pq7j-f95f-qfcv"],"related":[],"kind":"vulnerability","state":"published","title":"Claude Code: Plugin Hash Pin Bypass Allows Bypass of Hash Pinning","summary":"Claude Code is an agentic coding tool. Prior to 2.1.179, the Claude Code and Claude Desktop plugin installation flow runs git checkout for a marketplace-pinned commit without verifying that the resulting HEAD equals the pinned 40-character SHA. An attacker who controls a plugin repository on a Git host that permits SHA-shaped branch names can create a branch named after the reviewed commit, causing checkout to select the branch tip and install attacker-controlled plugin code. Exploitation requires a user to install the malicious plugin and pin it to the ostensibly safe hash. This issue is fixed in version 2.1.179.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Claude Code is an agentic coding tool. Prior to 2.1.179, the Claude Code and Claude Desktop plugin installation flow runs git checkout for a marketplace-pinned commit without verifying that the resulting HEAD equals the pinned 40-character SHA. An attacker who controls a plugin repository on a Git host that permits SHA-shaped branch names can create a branch named after the reviewed commit, causing checkout to select the branch tip and install attacker-controlled plugin code. Exploitation requires a user to install the malicious plugin and pin it to the ostensibly safe hash. This issue is fixed in version 2.1.179.","source":"cvelist"},{"lang":"en","text":"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.\n\nUsers on standard Claude Code auto-update have received this fix already. Users performing manual updates are advised to update to the latest version.\n\nThank you to Or Nevo Michrowski of Air Security for reporting this issue.","format":"markdown","source":"ghsa"}],"published":"2026-10-13T19:04:11.695Z","modified":"2026-10-15T20:30:08.558Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-494","CWE-829"],"affected":[{"ranges":[{"version":"< 2.1.179","status":"affected"}],"vendor":"anthropics","product":"claude-code","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.179"}],"ecosystem":"npm","package":"@anthropic-ai/claude-code","purl":"pkg:npm/%40anthropic-ai/claude-code","source":"ghsa"}],"references":[{"url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-pq7j-f95f-qfcv","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/anthropics/claude-code/releases/tag/v2.1.179","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-86063","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/anthropics/claude-code","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-13T20:14:06.546Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-86063","url":"https://www.cve.org/CVERecord?id=CVE-2026-86063","licence":"CVE Terms of Use","modified":"2026-10-13T20:21:00.156Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pq7j-f95f-qfcv","url":"https://github.com/advisories/GHSA-pq7j-f95f-qfcv","licence":"CC-BY-4.0","modified":"2026-10-15T20:30:08.558Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-86063","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-86063","licence":"Public domain","modified":"2026-10-13T21:19:36.730Z"}],"updatedAt":"2026-11-25T22:59:44.331Z","epss":{"score":0.00196,"percentile":0.09805,"date":"2026-12-01T12:00:22.000Z"}}