AI

The same bug sat in Claude Code, Codex, Copilot and Gemini CLI. Two of them still have it.

Plugin4Shell breaks SHA pinning — the mechanism that is supposed to freeze a plugin at the exact version you reviewed. Anthropic and OpenAI shipped patches. Microsoft has not. Google deprecated Gemini CLI rather than fix it.

N Noah · The Sharp Brief · September 20, 2026 · 4 min read

Security firm AIR disclosed a vulnerability on Thursday that it found in all four of the major AI coding agents at once: Anthropic’s Claude Code, OpenAI’s Codex, GitHub Copilot and Google’s Gemini CLI. It calls the bug Plugin4Shell and describes it as the first supply-chain vulnerability of the AI agent ecosystem.

The mechanic is narrow and the consequence is not. When an agent installs a plugin, it checks out a pinned 40-character commit hash — the industry’s standard promise that the code you reviewed is the code that runs. AIR found that none of the four agents verified the checkout actually landed on that commit. An attacker who can name a git branch as a 40-hex string can redirect the checkout to their own code while the pin still reads as intact.

What makes it zero-click is the update path. Claude Code and Codex refresh installed plugins in the background by default, and the same unverified checkout runs every time. So the swap reaches plugins that are already installed, on machines where nobody clicked anything, from a marketplace the user had every reason to trust.

Our take: This is not a story about careless developers. It is a story about a control that quietly did not do its job. SHA pinning is the thing security teams point to when they approve agent use at all — it is the answer to “what stops a plugin from changing under us?” For four agents, for some period ending in May 2026, the answer was: nothing, if the upstream host allowed a hash-shaped branch name.

Where the exposure actually sits

The attack only works where a branch can be named like a commit hash. GitHub rejects a 40-hex branch name outright, which takes a large share of the plugin ecosystem off the table. Bitbucket allows it. So does any self-hosted git server. That means the risk concentrates precisely in the enterprises most likely to run their own infrastructure and their own internal plugin marketplace — the ones that thought hosting it themselves was the conservative choice.

AIR argues the fix cannot come from marketplaces, because the unverified checkout happens inside the agent. Each vendor has to patch its own client. That is why the response has split four ways.

Anthropic patched Claude Code in version 2.1.179. OpenAI patched Codex in 0.146.0. Microsoft, told about the same flaw in Copilot in June, has shipped nothing. Google went the other way entirely and deprecated Gemini CLI rather than fixing it, pointing users to its newer Antigravity agent, which is built without the plugin pinning system the attack depends on. For anyone who stays on Gemini CLI, that is not a patch timeline — it is an open door with no closing date.

The reach is the point

AIR pairs Plugin4Shell with two pieces of its own earlier work to argue the chain is proven end to end. In one, a plugin it published spread to more than 26,000 agents before it was pulled. In a separate study it calls SkillJacking, it found 925 skills in active use that had been hijacked from their original maintainers, reaching 134,000 agents. Takeovers at that scale are already demonstrated; Plugin4Shell defeats the mechanism meant to contain them.

A coding agent runs with the developer’s reach. Repositories, API keys, CI/CD credentials, cloud consoles. An exploit here does not get you a sandbox. It gets you the employee.

What to watch

The uncomfortable part is the timeline. AIR had working exploits against all four agents in May and disclosed in June. Four months later, half the ecosystem is fixed.

Advertisement

Get the day, decoded — at 7 PM ET

The Sharp Brief: AI, money, business & performance in five sharp minutes. Free.

Free bonus: subscribe today and The 2026 AI Playbook lands with your welcome email.

★ Recommended by 5+ newsletters across AI, markets & business.