CVE-2026-136998: Docker Sandboxes flaw lets malicious agent kits steal API keys
Docker Sandboxes is a product for running AI coding agents. Its promise is that developers' API keys never enter the sandbox, where the agent runs inside a microVM[1].
The author says CVE-2026-136998 lets a third-party agent kit[2] take the real Anthropic, OpenAI, or GitHub key anyway. After the developer approves the kit once, a later update can send the real key to a server the attacker controls, with no prompt, warning, or log entry about the key. Docker saves the approval by service name, not by the kit version that was reviewed, and the domains list in the saved approval is never checked. In the author's reproduction, the key reached a canary server after the kit was changed to point at a different host.
The author tested the flaw only with the anthropic service and a dummy key; the other twelve built-in services use the same code path but were not tested separately. Docker fixed the issue in Docker Sandboxes v0.55.0, released on 30 November 2026.
Product Docker Sandboxes docker.com
Docker Sandboxes runs AI coding agents like Claude Code and Codex in isolated microVM sandboxes, so they stay separate from the developer's machine.
Read the original endorlabs.comDiscussion
Sources
-
Endor Labs
CVE-2026-136998: Docker Sandboxes Vulnerability Allows Malicious AI Agent Kits to Steal Developers' API Keys





