
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.
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 question