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. [...]
Docker Sandboxes bug could leak AI API keys via malicious updates
Bill Toulas
- December 1, 2026
- 04:59 PM

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.β
Source: Endor Labs
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.
A stolen AI provider key could incur charges to the victimβs account, while a GitHub token could grant access to repositories if this is within its scope.
The researcher noted that the faulty code was introduced in Docker Sandboxes version 0.43.0.
Users are recommended to upgrade to Docker Sandboxes 0.55.0 and review any credential approvals they previously granted to third-party kits.
If there have been any suspicious configuration and destination changes on that kit, it would be prudent to rotate the potentially exposed key out of an abundance of caution.
3,000 AI builds later, ask us anything
On December 15th, join Eoin Hinchy, our co-founder and CEO; Martin Moroney, our Head of AI Transformation; and Christina Troy, our Sr. Manager, IT for an open conversation about what worked, what didn't, and what we learned along the way.
Bring your questions and get candid insights!
Register and ask your questionOriginally published by BleepingComputer. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.
