AI dev tools —

Docker Sandbox flaw lets AI kit updates steal Anthropic, OpenAI, GitHub API keys

A vulnerability within Docker Sandboxes, a platform designed to run AI coding agents within segregated virtual machines, allows a third-party agent kit to compromise and steal API keys, despite the…

Docker Sandbox flaw lets AI kit updates steal Anthropic, OpenAI, GitHub API keys

A vulnerability within Docker Sandboxes, a platform designed to run AI coding agents within segregated virtual machines, allows a third-party agent kit to compromise and steal API keys, despite the product's design intent to shield these credentials. This issue stems from how credential approvals are managed and the absence of necessary verification checks within the system.

The security flaw, cataloged as CVE-2026-136998, permits a malicious update to an agent kit to transmit a developer's genuine Anthropic, OpenAI, or GitHub key to a server controlled by an attacker, even without any new prompt from the developer. When a developer initially grants approval to a kit, Docker records the specific domains authorized to receive the key. However, subsequent executions only validate whether the developer has sanctioned the AI service itself. If an updated kit modifies the intended recipient to an attacker-controlled server, Docker's proxy will forward the actual API key without alerting the developer. Moreover, the policy log will indicate that the connection was permitted, failing to disclose that Docker transmitted the developer's API key alongside the request. Application security firm Endor Labs 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," and added, "An operator reviewing logs afterwards sees an ordinary permitted request."

The researcher, Payton Kennedy, from Endor Labs, uncovered this weakness by testing it with a placeholder Anthropic key. After reporting this discovery to Docker, the project released a corrective patch in version 0.55.0 on November 30. The most recent Docker Sandbox release now ensures that the injection of kit credentials respects the destinations that were separately authorized for API keys and OAuth within credential bindings, and it treats bindings lacking approved destinations as if they are absent.

Kennedy indicated that CVE-2026-136998 affects thirteen integrated services that utilize the same code for handling credentials, including Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI. The potential consequences of a stolen AI provider key include incurring charges against the victim's account, while a compromised GitHub token could grant access to repositories, depending on its permissions scope. The flawed code was initially introduced in Docker Sandboxes version 0.43.0.

Market participants are advised to upgrade to Docker Sandboxes 0.55.0 and to review any credential authorizations previously granted to third-party kits. If there is any indication of unusual configuration changes or destination alterations on a specific kit, it is prudent to rotate the potentially exposed key as a precautionary measure.

This incident highlights the evolving operational risks associated with integrating sophisticated AI capabilities into infrastructure platforms, where the trust model governing third-party extensions becomes a critical security vector. The reliance on initial developer approvals, combined with insufficient runtime validation, created a pathway for credential exfiltration via seemingly benign updates.

Why it matters

This vulnerability highlights critical security risks in isolated AI execution environments, where compromised agents can exfiltrate sensitive credentials. Operators must immediately upgrade to version 0.55.0 and rotate any potentially exposed keys to prevent unauthorized access or billing charges.

Earlier coverage

ai-devtoolssecuritycloud

Related coverage

Elsewhere in this edition