Air Security has disclosed Plugin4Shell, a critical supply chain vulnerability that affects four of the most widely used AI coding agents: Anthropic's Claude Code, OpenAI's Codex, GitHub Copilot, and Google's Gemini CLI.
The vulnerability exploits a fundamental trust assumption in how AI coding agents install and manage plugins. These tools typically verify plugin integrity using SHA-based commit pinning — a mechanism designed to ensure that the code an agent executes matches the exact commit hash that developers approved. Plugin4Shell demonstrates that this trust chain can be broken by repository owners, who can create a branch with the same 40-character SHA hash prefix as a legitimate commit, effectively substituting malicious code while passing integrity checks.
The attack is zero-click, meaning it requires no user interaction to execute. When a developer installs or updates a plugin in their AI coding agent, the compromised repository silently delivers malicious code instead of the expected plugin. Because the vulnerability exists at the repository ownership level, the attack can bypass the version-locking mechanisms that developers rely on to prevent supply chain compromises.
Two of the four affected agents — Claude Code and Codex — remain unpatched at the time of disclosure, while GitHub Copilot and Gemini CLI have issued fixes. The response disparity highlights a broader challenge in the AI coding agent ecosystem: there is no coordinated vulnerability disclosure framework analogous to what exists for traditional software.
The vulnerability class is reminiscent of the original Log4Shell crisis but targets a different layer of the software supply chain. Instead of exploiting a library used by applications, Plugin4Shell exploits the trust relationship between AI agents and the plugin repositories they consume. For development teams using these agents with access to production codebases, the implications are severe — a compromised plugin could exfiltrate source code, inject backdoors, or manipulate AI-generated suggestions to introduce vulnerabilities.
Air Security's disclosure underscores an urgent need for AI coding agent vendors to implement cryptographic verification mechanisms that go beyond simple hash pinning, including reproducible builds, signed releases, and independent attestation of plugin integrity.




