Docker Sandboxes bug could leak AI API keys via malicious updates

A vulnerability in Docker Sandboxes, a tool for running AI coding agents in isolated environments, could leak developers’ API keys to an attacker distributing malicious updates to third-party agent kits.
The flaw stems from how Docker Sandboxes reuses credential approvals and the lack of critical checks. When a developer approves a kit, Docker records which domains may receive the key. On subsequent runs, however, it checks only whether the developer approved the AI service.
If an updated kit changes the destination to a server controlled by the attacker, Docker’s proxy will send the real API key without prompting the developer.
Furthermore, the policy log would show that the connection was allowed without revealing that Docker sent the developer’s API key along with the request.“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,” application security company Endor Labs explains.“An operator reviewing logs afterwards sees an ordinary permitted request.”The flaw, tracked as CVE-2026-136998, was discovered by Endor Labs’ researcher Payton Kennedy, who demonstrated it using a dummy Anthropic key.
The researcher reported the finding to Docker, and the project pushed a fix in version 0.55.0, released on November 30.
The latest Docker Sandbox release ensures that kit credential injection respects the destinations approved separately for API keys and OAuth in credential bindings, and treats bindings with no approved destinations as missing.
According to Kennedy, CVE-2026-136998 impacts 13 built-in services that share the vulnerable credential-handling code, including Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI.
This summary is from Bleeping Computer, published Dec 1, 2026. NewsFusion links to the original reporting and groups related coverage.





