Plugin4Shell defeats commit-like pinning in four AI coding agents.
The chain is demonstrated; remediation across the four agents remains partial.
Claude Code, OpenAI Codex, GitHub Copilot, and Gemini CLI plugin or extension installers on developer workstations.
Zero-click execution of repository-controlled plugin code with the coding-agent user's privileges
A repository owner or later compromise can replace reviewed plugin code and obtain zero-click execution with the coding-agent user's privileges.
Detail, proof-of-concept code and 6 sources
A SHA-shaped branch can win Git's ambiguous reference resolution, while Gemini CLI has a related FETCH_HEAD path; the agents accepted the materialized checkout without proving that HEAD matched the pin.
OpenAI added an exact post-checkout comparison, and OpenAI and Anthropic published fixed releases, but the cross-agent condition is not fully closed.
- interaction:none
- no user action required
- proposed:access:repository:control
- proposed; not yet curated
- Pre-fix images still accepted
- No
- Reaches end-of-life hardware
- No
The first answer concerns patched SHA-pinned materialization; revocation is not established as part of this fix.