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
- Microsoft’s patch clock. Copilot is the largest install base of the four and the only one with a known flaw, a public write-up and no fix.
- Whether deprecation becomes a standard answer. Retiring a product instead of patching it is cheaper, and it leaves existing users permanently exposed. If that reads as acceptable, expect more of it.
- Enterprise plugin hosting. Any internal marketplace on Bitbucket or a self-hosted server should assume it is in scope, not out of it.
- Whether pinning gets audited elsewhere. The same “check out the hash, never verify you landed on it” pattern is not unique to coding agents.
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.
