# Plugin4Shell flaw found in four AI coding agents

> Plugin4Shell, disclosed by AIR Security on September 17, lets malicious code replace pinned plugins in four coding agents. Anthropic and OpenAI shipped fixes.

- Publisher: JARRUS (@jarrus.tech), thejarrus.com
- Story date: Sept. 20, 2026 (2026-09-20)
- Published: 2026-09-20, updated 2026-10-09
- Tags: Safety and security, Agents, Anthropic, OpenAI
- URL: https://thejarrus.com/en/news/plugin4shell/

On September 17, AIR Security researchers Or Nevo, Dor Granat and Niv Hoffman published a flaw they named **Plugin4Shell**. The same flaw sits in four coding agents at once: Claude Code, OpenAI Codex, GitHub Copilot and Gemini CLI.

The researchers call it **"the first supply chain vulnerability of the AI agent ecosystem."**

Plugin marketplaces pin every plugin to a specific Git commit hash for safety. The agents fetch that hash but **never verify that the code they received is actually that commit**.

An attacker creates a branch named with the same 40-character hash and makes it the default. **Git prefers the branch**, and the malicious code installs with a "successfully installed" message.

What makes it zero-click is auto-update. Claude Code and Codex update installed plugins in the background on their own; **the user does not have to do anything**.

AIR's warning: **"Doing the right thing does not protect you."** Installing a reviewed, pinned plugin from a trusted marketplace is enough to be exposed.

The four agents are not in the same place. Anthropic and OpenAI shipped fixes. **GitHub Copilot has no patch**; GitHub blocks hash-like branch names on its own platform, but Copilot can also install plugins from other hosts, and Bitbucket and self-hosted git servers do not have that protection.

Google has **retired Gemini CLI and will not patch it**, pointing users to Antigravity instead.

AIR found the flaw in May, reported it to the four vendors in June and published on September 17. There is **no evidence of exploitation in the wild**, and no CVE has been assigned.

The skeptical reading: according to The Hacker News, background auto-update is the default **only on the agents' built-in GitHub-hosted marketplaces**, and GitHub does not allow hash-like branch names. So the zero-click scenario applies to third-party marketplaces.

## Sources

1. [AIR Security: Plugin4Shell - Zero Click RCE Vulnerability found in top 4 most popular coding agents, millions of agents affected, Sept. 17, 2026](https://www.air.security/blog-posts/plugin4shell)
2. [The Hacker News: Plugin4Shell Lets Repository Owners Swap Pinned Plugin Code Across Four AI Coding Agents, Sept. 18, 2026](https://thehackernews.com/2026/09/plugin4shell-lets-repository-owners.html)
3. [Google Developers Blog: An important update: Transitioning Gemini CLI to Antigravity CLI, May 19, 2026](https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli/)

## Corrections and updates

- Oct. 9, 2026 (Correction): The version first posted on Instagram said GitLab and Bitbucket lack the protection against hash-like branch names. GitLab blocks such names too; according to AIR, the gap is on Bitbucket and self-hosted git servers, and the text has been corrected.

Report an error: corrections@thejarrus.com
