· AI dev tools
Docker Sandboxes flaw lets malicious AI agent kit updates steal API keys
A third-party agent kit, through a vulnerability in Docker Sandboxes, possessed the ability to pilfer API keys—keys the system is engineered to shield from the agent.
This security lapse permitted a later update to an approved kit to transmit genuine Anthropic, OpenAI, or GitHub credentials to a server controlled by an attacker, all without requiring a new user prompt, according to Endor Labs.
The vulnerability within Docker Sandboxes, the technology used for housing AI coding agents in isolated virtual machines, allows an attacker distributing malicious updates to third-party agent kits to potentially siphon off developers' API keys. The root of this issue lies in how Docker Sandboxes manages the reuse of credential authorizations and the absence of necessary checks. Initially, when a developer grants approval to a kit, Docker logs which specific domains are permitted to receive the key. However, during subsequent operations, the system only verifies if the developer has authorized the AI service itself. If an updated kit alters the destination to an attacker-controlled server, Docker's proxy will forward the actual API key without prompting the developer. Moreover, the policy log will indicate that the connection was permitted, failing to disclose that Docker transmitted the developer's API key along with the request. Endor Labs' application security experts elaborated, stating, “The second ‘sbx create’ shows no prompt. ‘sbx policy log’ records the connection to the canary host as allowed and says nothing about a credential being injected into it,” adding, “An operator reviewing logs afterwards sees an ordinary permitted request.”
This defect, officially designated as CVE-2026-136998, was brought to light by Endor Labs researcher Payton Kennedy, who demonstrated the flaw using a placeholder Anthropic key. After Kennedy reported this discovery to Docker, the project subsequently released a remedy in version 0.55.0 on November 30. The most recent Docker Sandbox release now mandates that credential injection from a kit must honor the destinations separately approved for API keys and OAuth within credential bindings, and it treats bindings lacking approved destinations as if they were absent. Kennedy pointed out that CVE-2026-136998 affects thirteen built-in services that utilize the vulnerable credential-handling code, including GitHub, OpenAI, Copilot, Devin, Groq, Mistral, and several others like Anthropic, Cursor, Droid, Google, Nebius, OpenRouter, and xAI. The potential consequences of a stolen AI provider key include incurring charges on the victim's account, while a compromised GitHub token could grant access to repositories if its permissions allow it. The researcher noted that the problematic code was introduced starting with Docker Sandboxes version 0.43.0. Users are strongly advised to upgrade to Docker Sandboxes 0.55.0 and to review every credential approval they previously granted to any third-party kits. If there has been any indication of suspicious configuration changes or destination modifications within those kits, it is wise to cycle the potentially exposed key as a precautionary measure.
Why it matters
Developers using AI coding agents in isolated environments must upgrade immediately to version 0.55.0 to prevent credential theft. Stolen keys could lead to unauthorized charges or repository access, making key rotation a necessary precaution.



