Close Menu
NCIJ Network NCIJ Network
    What's Hot

    After 20 years of my school dinners campaign, I’m a happy man. At last, we’re going to feed kids properly | Jamie Oliver

    September 19, 2026

    Russia’s elections are more than political theatre | Elections

    September 19, 2026

    Xiaomi Has a Luxury SUV for $31,000 That All Western Brands Should Fear

    September 19, 2026
    Facebook X (Twitter) Instagram
    Trending
    • After 20 years of my school dinners campaign, I’m a happy man. At last, we’re going to feed kids properly | Jamie Oliver
    • Russia’s elections are more than political theatre | Elections
    • Xiaomi Has a Luxury SUV for $31,000 That All Western Brands Should Fear
    • NightmareStresser DDoS Service Disrupted in International Operation
    • Just 5,900 bitcoin in 3 months: Corporate demand remains tepid
    • These blood thinners may have an unexpected benefit for Alzheimer’s patients
    • Meditating by the Dnipro: I’m an artist in Ukraine, searching for peace and a life between the missiles | Anna Ivanenko
    • From ovations in Venice to death threats in Israel: the extreme responses to NAZA documentary | NAZA
    • About
      • Our Team
      • Editorial Policy
      • Editorial Independence
      • International Support
    • Trust & Standards
      • AI Usage Policy
      • Conflict of Interest Policy
      • Corrections Policy
      • Ethics Policy
      • Fact-Checking Policy
      • Source Protection
    • Get Involved
      • Guide for Sources
      • Support Independent Journalism
    • Legal
      • Cookie Policy
      • Privacy Policy
      • Terms of Use
    Facebook X (Twitter) Instagram
    NCIJ Network NCIJ Network
    Saturday, September 19
    • Home
    • World
    • Ai
    • Business
    • Politics
    • Health
    • Crypto
    • Science
    • Technology
    • Cybersecurity
    • Defense & Security
    • Economy
    • Energy
    • Europe
    • More
      • Fact Check
      • Investigations
      • Opinion & Analysis
      • Environment
    NCIJ Network NCIJ Network
    Home»Cybersecurity

    Plugin4Shell Lets Repository Owners Swap Pinned Plugin Code Across Four AI Coding Agents

    NCIJ NETWNCIJ NETWORKBy NCIJ NETWNCIJ NETWORKSeptember 19, 2026 Cybersecurity No Comments5 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    A flaw in four widely used AI coding agents lets someone who controls a plugin’s code repository swap the plugin an agent installs for a malicious one, even when the agent locked that plugin to a specific reviewed version, security firm Air Security said on Thursday.

    The firm said Anthropic has patched the flaw in Claude Code 2.1.179 and OpenAI in Codex 0.146.0, that GitHub Copilot has no fix, and that Google will not patch the Gemini CLI, which it is retiring.

    The agents install add-ons called plugins from online marketplaces. To stay safe, a marketplace locks each plugin to a single reviewed version by its commit hash, a long string that identifies an exact snapshot of the code. Air found that the agents fetch that snapshot but never check that the code they end up with actually matches it.

    A branch is a named line of code in a repository. On a code host that lets someone create a branch whose name is made to look like the commit hash, the owner of a plugin’s repository can point that name at different code. The agent then installs the different code while still reporting that it is on the locked version.

    Because a plugin runs with the same access as the person using the agent, the swapped code can access that person’s files, saved credentials, and the systems they can log in to, Air said.

    The trick does not work everywhere. GitHub does not allow branch or tag names that look like commit hashes, according to GitHub’s documentation, so a plugin installed from a GitHub repository is not exposed to this branch trick. Air says the trick works on hosts that permit such names, such as Bitbucket or a company’s own git server, which these agents also support.

    Cybersecurity

    The Hacker News checked the marketplaces the agents ship with on September 18 and found that every plugin in Anthropic’s community catalog, and in the default catalogs for Claude Code and Copilot, points to a GitHub repository.

    The Gemini CLI is attacked a different way. Instead of a branch shaped like the hash, Air says its installer can be tricked by a repository whose main branch is named FETCH_HEAD, and GitHub’s rule against hash-shaped names does not clearly block that name. So it is not established that installing a Gemini CLI plugin from GitHub avoids the flaw, and the Gemini CLI is the agent Air says will not be fixed.

    What would make the attack need no action from the victim is background auto-update, which lets an agent refresh installed plugins on its own, so a plugin someone already trusts can be replaced without a prompt. Air says this runs by default in Claude Code and Codex.

    But auto-update is on by default only for the agents’ own built-in marketplaces, which are hosted on GitHub, and is off or optional for outside ones, according to Anthropic’s and GitHub’s documentation. So a reader who installs plugins only from the agents’ default, GitHub-based marketplaces is not exposed to the branch-name version of the attack, on Air’s and GitHub’s own account of how it works.

    Air says it built a working test attack against all four agents in May and told the vendors in June. As of September 18, no CVE identifier had been assigned, and none of the four vendors had published a security advisory for the flaw, checks by The Hacker News found, and there is no sign it has been used in a real attack.

    The Hacker News reproduced the underlying Git behavior in a local test, and OpenAI’s own public fix describes the same bug: Git “can interpret a requested commit SHA as a branch name,” the company wrote, which can make a plugin source “materialize a different commit than the one it pinned.” That change shipped in Codex 0.146.0.

    Because each agent checks the lock on the user’s own machine, not at the marketplace, no marketplace can fix this for users — the fix has to ship in the agent itself. Where each agent stands:

    Agent Status What to do
    Anthropic Claude Code Fixed, Air says, in

    2.1.179
    Update to 2.1.179 or later
    OpenAI Codex Fixed in

    0.146.0
    Update to 0.146.0 or later
    GitHub Copilot No fix, Air says No patch available
    Google Gemini CLI Will not be fixed, Air says Move to Antigravity, Air and Google say

    The sources do not say whether updating an affected agent removes a plugin that was already swapped, or only stops future swaps.

    Anthropic’s release notes for 2.1.179 do not mention the fix, and the account that it is fixed in is Air’s. For Copilot, Air says it told Microsoft in June and that no fix has shipped. Copilot can install plugins from hosts other than GitHub, which is where Air says the risk sits.

    Cybersecurity

    Google stopped serving the consumer Gemini CLI in June and has been pointing users to Antigravity, its newer agent, which Air says this attack cannot reach. Google has also said that enterprise access to the Gemini CLI will continue with updates. Whether a fix for this flaw is among them is not clear.

    The same researchers have tested agent add-ons before. In June, The Hacker News covered Air’s test in which a fake skill passed security scanners and reached about 26,000 agents by changing an external link after the review had cleared it. Plugin4Shell moves that idea from a swapped link to a swapped plugin sitting behind a version lock.

    Agents Code Coding lets owners Pinned Plugin Plugin4Shell Repository Swap
    NCIJ NETWNCIJ NETWORK
    • Website

    Keep Reading

    NightmareStresser DDoS Service Disrupted in International Operation

    Microsoft Patches 18 Vulnerabilities in AI, Cloud Products

    New Check Point flaw lets hackers execute code with root privileges

    An Abandoned CDN Domain Was Re-Registered. Thousands of Sites Still Call It.

    Microsoft Patches CVSS 10.0 Azure AI Foundry Flaw Enabling Unauthorized Privilege Escalation

    23 Million User Records Compromised in Gyazo Data Breach 

    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    After 20 years of my school dinners campaign, I’m a happy man. At last, we’re going to feed kids properly | Jamie Oliver

    September 19, 2026

    Russia’s elections are more than political theatre | Elections

    September 19, 2026

    Xiaomi Has a Luxury SUV for $31,000 That All Western Brands Should Fear

    September 19, 2026

    NightmareStresser DDoS Service Disrupted in International Operation

    September 19, 2026
    Latest Posts

    Texas deputy used 83K Flock cameras to find woman who had abortion. Was it a welfare check, as he claimed?

    August 4, 2026

    Trump’s Seabed Mining Order Is an Ecological and Political Disaster

    August 4, 2026

    ExxonMobil picks Sercel technology to support operations offshore Guyana

    August 4, 2026

    Subscribe to News

    Get the latest sports news from NewsSite about world, sports and politics.

    NCIJ Network is an independent digital news platform delivering trusted investigative journalism, European and global news, in-depth analysis, and fact-based reporting with accuracy, transparency, and integrity.

    Facebook X (Twitter) Instagram Pinterest YouTube

    After 20 years of my school dinners campaign, I’m a happy man. At last, we’re going to feed kids properly | Jamie Oliver

    September 19, 2026

    Russia’s elections are more than political theatre | Elections

    September 19, 2026

    Xiaomi Has a Luxury SUV for $31,000 That All Western Brands Should Fear

    September 19, 2026

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Type above and press Enter to search. Press Esc to cancel.