# Field Notes: When an Approval Doesn't Bind. Two Agent-Tooling Flaws and the Design Rule

> Two 2026 flaws in agent tooling, Plugin4Shell and CVE-2026-136998, share one cause: an approval that was recorded but not enforced at run time.

Security & Governance · Field Notes · By iVirtualSoft Editorial · Published 2026-12-04 · 7 min read

Field notes, 4 December 2026. Two flaws in AI agent tooling, disclosed this autumn by two different research teams, failed in the same way. A person approved something, the system recorded the approval, and later it ran something else. For anyone deploying coding agents, the useful lesson is a design rule rather than a patch list.

**Short answer:** an approval works as a control only if it is bound to the exact content, the allowed destination and the version that was reviewed, and if that binding is checked again when the thing runs. An approval checked only when it is granted is a record.

iVirtualSoft did not reproduce or test these vulnerabilities; this is analysis of published information, not original research. The note is split into three parts so the sources stay visible: what the researchers reported, what the vendors confirmed, and our own analysis.

## What was reported

### Plugin4Shell, according to AIR Security

On 17 September 2026, the AIR Security research lab [published Plugin4Shell](https://www.air.security/blog-posts/plugin4shell), a flaw in how AI coding agents install plugins from a marketplace. AIR names Claude Code, OpenAI Codex, GitHub Copilot and Gemini CLI as affected.

AIR describes the mechanism this way. A marketplace pins each plugin to a 40-character git commit hash, the SHA, so that users get the commit someone reviewed. The agents ran `git checkout` on that hash without checking where the checkout landed. Because git resolves a branch name before a commit hash, an attacker who controls the plugin's repository can create a branch named after the reviewed hash, and checkout lands on the branch tip, which holds the attacker's code.

AIR reports that GitHub rejects hash-shaped branch names while Bitbucket and self-hosted git servers allow them. It also describes a separate Gemini CLI variant that uses a branch named `FETCH_HEAD`. AIR calls the flaw zero-click, because background auto-update, which it says is on by default in Claude Code and Codex, re-runs the checkout when a marketplace changes its pin. AIR's recommended fix is to confirm, inside the agent, that `HEAD` equals the pinned SHA after checkout.

Two claims rest on AIR alone. AIR reports that GitHub Copilot in VS Code was fixed in VS Code 1.136.0 on 2 September 2026; we could not find that in Microsoft's published release notes. AIR also reports that Google said it will not patch Gemini CLI.

### CVE-2026-136998, according to Endor Labs

Peyton Kennedy of Endor Labs found a flaw in Docker Sandboxes, reported it to Docker on 21 September, and [published the analysis](https://www.endorlabs.com/learn/cve-2026-136998-docker-sandboxes), dated 30 November.

In Endor Labs' account, a developer launches a sandbox with a third-party agent kit and approves its request for, say, an Anthropic API key. The system stores a binding keyed by service name, with a list of approved domains. At request time, the proxy checked only that a binding existed for that service. Endor Labs says the domain list was "written and never read." A later version of the kit, published under the same name, could point the injection at a host the attacker controls, and the real key would go there with no new prompt.

Endor Labs adds three details. Kit network allow-list entries were applied without a prompt. The policy log recorded an allowed connection, but not that a credential had been injected. And its test covered one service, with a dummy key; it says the other 12 built-in services share the code path, without demonstrating them. Its advice for Docker Sandboxes users is to scope secrets per sandbox with `--sandbox` (it notes `sbx secret set` is global by default), remove bindings granted to third-party kits, and rotate provider keys if a kit changed after approval.

## What vendors confirmed

### Anthropic: Claude Code and Claude Desktop

Anthropic published advisory [GHSA-pq7j-f95f-qfcv](https://github.com/anthropics/claude-code/security/advisories/GHSA-pq7j-f95f-qfcv) on 9 October 2026, rated High, crediting Or Nevo Michrowski of Air Security. The fix is in Claude Code 2.1.179. The advisory notes that exploitation needs a git host that allows hash-shaped branch names, and frames the attack more narrowly than AIR: a user has to install the malicious plugin.

The [CVE-2026-86063 record](https://www.cve.org/CVERecord?id=CVE-2026-86063), issued from that advisory and published on 13 October 2026, says that before 2.1.179 the install flow ran checkout "without verifying that the resulting HEAD equals the pinned 40-character SHA."

### OpenAI: Codex

The [Codex 0.146.0 release notes](https://github.com/openai/codex/releases/tag/rust-v0.146.0) include the line "Verify Git plugin SHA checkouts." The notes do not name the vulnerability.

### Docker: Docker Sandboxes

Docker released Docker Sandboxes 0.55.0 on 30 November 2026. Its [release notes](https://docs.docker.com/ai/sandboxes/release-notes) say it fixed CVE-2026-136998, "where a modified third-party kit could reuse a previously approved service binding," and that credential injection "now enforces the approved destinations for API keys and OAuth tokens." They also say bindings with no approved destinations are now treated as missing.

The [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-136998), published by Docker on 1 December, says versions from 0.43.0 and before 0.55.0 "recorded approved credential destinations but did not enforce them." Docker scores it 5.6 (Medium) under CVSS 4.0. Endor Labs' write-up scores the same flaw 6.9 under CVSS 4.0, so expect scanners to show different figures.

### Google: Gemini CLI

The Google source cited here concerns the product's future, not this flaw. In [a post dated 19 May 2026](https://developers.googleblog.com/en/an-important-update-transitioning-gemini-cli-to-antigravity-cli/), it announced the move from Gemini CLI to Antigravity CLI. The post said that from 18 June 2026 Gemini CLI would stop serving requests for Google AI Pro and Ultra plans and for free use, but that it "will remain accessible via paid Gemini and Gemini Enterprise Agent Platform API keys." So some teams may still run it.

## Our analysis

### One cause behind both flaws

Neither flaw is a model failure. No prompt was injected and no model was tricked. Both are ordinary integrity and authorization bugs in the tooling under an agent, and they inherit the agent's privileges: a shell and file system in one case, provider API keys in the other.

In both, the approval step itself worked. A reviewer pinned a commit; a developer approved a key for a service. What broke was the link between what was approved and what ran later. Plugin4Shell bound the approval to a name that git could reinterpret, and never checked the content on disk. The Docker flaw bound the approval to a service name, stored the destination, and never enforced it.

Both also turned on mutability. A plugin repository and a kit can change after review. An approval that survives a change to the thing approved is, in effect, approving whatever comes next.

On the zero-click dispute, AIR and Anthropic can both be right. The first install is a user action. What runs after that can change without one, if updates are automatic.

### The rule we'd apply: bind, then re-check at execution

Treat every approval in an agent system as three facts, and check all three at the point of use, inside the component that executes the code or holds the secret.

1. **Content.** Record a hash of what was reviewed. Before running or loading it, hash what is actually present and refuse on a mismatch. This is AIR's fix for Plugin4Shell, generalized.
2. **Destination.** A credential approval names where the credential may go. Enforce that list when the credential is attached, and treat an empty list as no approval, which is the default Docker adopted in 0.55.0.
3. **Version.** An approval covers one version. A new version is a new request, even when the name, tag or branch is unchanged.

The trade-off is friction. Re-prompting on every version change will annoy developers if extensions update often, and some teams will respond by approving everything. The better answer is fewer, slower updates through an internal mirror, not weaker binding. The same principle sits behind [our approach to AI governance](https://www.ivirtualsoft.com/enterprise-ai.html): scoped tool access, and human approval for consequential actions that the system actually enforces.

Re-checking is the step teams usually skip, because approval prompts are visible and easy to demonstrate, while enforcement at execution time is invisible until it is missing.

### Checks to run this week

- **Versions.** Is Claude Code at 2.1.179 or later, Codex at 0.146.0 or later, and Docker Sandboxes at 0.55.0 or later? Is anyone still running Gemini CLI on an API key?
- **Inventory.** Which agent tools, plugins, skills and kits are installed, at which versions, sourced from which git hosts?
- **Updates.** Do third-party extensions update in the background? For agents with shell access, route updates through review.
- **Post-fetch verification.** Ask each vendor where the tool checks received content against what was approved.
- **Credential scope.** Are keys scoped to one sandbox or task, or set globally?
- **Logging.** Does the audit log record that a secret was attached and where it went, or only that a connection was allowed?

### What this note cannot tell you

We have no data on how many installations were exposed, or whether either flaw was exploited. The Copilot fix version and Google's no-patch position come from AIR alone, and the mechanisms come from the discoverers' write-ups and vendor advisories, not from our own testing.

The takeaway is narrow and durable: when you review an agent tool, ask where the approval is re-checked, not whether an approval prompt exists. For the wider pre-launch review, see [10 questions to ask before deploying an AI agent](https://www.ivirtualsoft.com/insights/questions-before-deploying-ai-agent), and for where credentials and data may flow, [designing AI systems that respect data boundaries](https://www.ivirtualsoft.com/insights/ai-data-boundaries).

## References

- [CVE-2026-86063 (CVE record)](https://www.cve.org/CVERecord?id=CVE-2026-86063)
- [Anthropic security advisory GHSA-pq7j-f95f-qfcv: Plugin Commit SHA Pin Bypass](https://github.com/anthropics/claude-code/security/advisories/GHSA-pq7j-f95f-qfcv)
- [AIR Security: Plugin4Shell](https://www.air.security/blog-posts/plugin4shell)
- [OpenAI Codex 0.146.0 release notes](https://github.com/openai/codex/releases/tag/rust-v0.146.0)
- [Google for Developers: Transitioning Gemini CLI to Antigravity CLI](https://developers.googleblog.com/en/an-important-update-transitioning-gemini-cli-to-antigravity-cli/)
- [CVE-2026-136998 (CVE record)](https://www.cve.org/CVERecord?id=CVE-2026-136998)
- [Docker Sandboxes release notes](https://docs.docker.com/ai/sandboxes/release-notes)
- [Endor Labs: CVE-2026-136998 in Docker Sandboxes](https://www.endorlabs.com/learn/cve-2026-136998-docker-sandboxes)

Source: https://www.ivirtualsoft.com/insights/field-notes-approvals-that-dont-bind
