Plugin4Shell: The Zero-Click Bug Putting AI Coding Agents at Risk

A zero-click exploit called Plugin4Shell hijacks trusted plugins in Claude Code, Codex, Copilot, and Gemini CLI. Here's what agencies should do now.

Plugin4Shell: The Zero-Click Bug Putting AI Coding Agents at Risk

By Hadidiz Flow Team • September 20, 2026 • AI

When a "Trusted" Plugin Turns Malicious Without a Single Click

Security researchers just disclosed a vulnerability that should make anyone running an AI coding agent stop and check their update settings. It's called Plugin4Shell, and it affects the four most widely used AI coding agents on the market: Claude Code, OpenAI Codex, GitHub Copilot, and Gemini CLI. The flaw lets an attacker silently swap a plugin you already trust — one that passed review and was pinned to a specific, vetted version — for malicious code, with zero clicks and no warning. If your agency, your dev team, or your automation stack leans on any of these tools with third-party plugins, this is worth ten minutes of your attention today.

What Plugin4Shell Actually Does

The vulnerability, disclosed by the security research firm AIR on September 17, 2026, targets a mechanism called SHA pinning — the safeguard that's supposed to lock an installed plugin to one specific, reviewed version of its code so it can't change without anyone noticing.

Here's the problem: every one of the four affected agents checks out the pinned commit but never verifies the checkout actually landed on that commit. An attacker who controls (or later takes over) the plugin's repository can create a git branch named exactly like the 40-character pinned commit hash and set it as the default branch. Because git prefers a branch name over a commit ID when both match, the agent's checkout silently resolves to the attacker's branch instead of the reviewed code — while still reporting that the pin was honored. Gemini CLI has its own variant of the same underlying flaw, tied to how it fetches and checks out commits.

What makes this especially dangerous is that it's not just an install-time risk. Claude Code and Codex both auto-update plugins in the background by default, which means a plugin you installed safely months ago can be swapped out for a malicious version with no prompt, no click, and no visible sign anything happened. AIR calls this "the first supply chain vulnerability of the AI agent ecosystem" — and they've already demonstrated, in earlier research, that getting a malicious plugin into a trusted marketplace or hijacking an existing one at scale is entirely realistic, not theoretical.

Why This Matters for AI Agencies and Automation Builders

If you build with AI coding agents as part of client delivery — writing FlutterFlow custom code, scaffolding automations, or using agentic tools to speed up development — this flaw sits directly in your supply chain. The compromise isn't limited to careless plugin installs. AIR's researchers were explicit that the victim only needs to have a plugin installed "from a marketplace they trust, that was reviewed and pinned exactly as the security model intends." Doing everything right doesn't protect you here.

A successful exploit hands the attacker the same level of access to your systems and data as the agent itself has — which, for most agencies, means source code, API keys, cloud credentials, and potentially CI/CD pipelines. For a client-facing agency, that's not just a technical incident; it's a trust and liability problem.

Who's Patched and Who Isn't

Vendor response has been uneven, and this is the part worth checking against your own toolchain immediately:

  • Claude Code — Patched by Anthropic in version 2.1.179, following AIR's disclosure.
  • OpenAI Codex — Patched in version 0.146.0.
  • GitHub Copilot — Microsoft has not shipped a fix. There is currently no patch available for Copilot users running plugins from a marketplace.
  • Gemini CLI — Google has deprecated Gemini CLI entirely rather than patching it, meaning every existing install remains vulnerable indefinitely. Google is directing users to its newer agent, Antigravity, which doesn't use the plugin-pinning system this attack exploits.

What To Do Right Now

A few concrete steps, in priority order:

  • Update immediately if you're on Claude Code or Codex — confirm you're on 2.1.179 / 0.146.0 or later, and don't rely on auto-update alone until you've verified the version.
  • Audit any GitHub Copilot plugin usage. Since there's no patch, consider pausing third-party plugin installs in Copilot until Microsoft ships a fix, especially on repos with sensitive credentials.
  • Migrate off Gemini CLI if you're using plugins with it — Google isn't patching it, so the exposure doesn't go away on its own.
  • Review which plugin marketplaces your team pulls from, and favor hosts like GitHub that reject the specific branch-naming trick this exploit depends on over self-hosted git servers or Bitbucket, which don't block it.
  • Treat agent plugin permissions the same way you'd treat any third-party dependency — least privilege, credential isolation, and periodic audits, not "install and forget."
  • Key Takeaways

    • Plugin4Shell is a zero-click vulnerability affecting Claude Code, Codex, GitHub Copilot, and Gemini CLI that bypasses SHA pinning — the core safeguard meant to keep installed plugins from silently changing.
    • Auto-update features in Claude Code and Codex mean a previously safe, reviewed plugin can be swapped for malicious code with no user action required.
    • Claude Code and Codex are patched; GitHub Copilot has no fix yet; Gemini CLI has been deprecated rather than patched.
    • Agencies and teams using these tools with third-party plugins should update immediately, audit plugin sources, and apply the same least-privilege scrutiny to AI agent plugins that they would to any other software dependency.
    • This is being described as the first true supply-chain vulnerability of the AI agent ecosystem — expect more scrutiny of plugin marketplaces as agentic coding tools keep scaling.
    Weekly newsletter

    No spam. Just the latest news and tips, interesting articles, and exclusive interviews in your inbox every week.

    Read our privacy policy
    Thank you! Your submission has been received!
    Oops! Something went wrong while submitting the form.
    Read more from our blog
    We transform your idea into an App Professionally Quickly

    Our cutting-edge features simplify collaboration and creativity, making your workflow intuitive and efficient. Transform your vision into reality effortlessly with Hadidiz Flow.