A flaw in Docker Sandboxes could let a malicious update to a third-party AI agent kit send a developer’s API key to an attacker-controlled server. Docker fixed the issue in version 0.55.0, released on November 30.
Docker Sandboxes runs AI coding agents in isolated environments. When a developer approves a kit, Docker records the domains allowed to receive a credential. On later runs, the vulnerable code checked whether the developer had approved the AI service, but did not recheck the approved destination.
That gap meant an updated kit could point a request to a different server. Docker’s proxy would then attach the real API key without asking the developer again. The policy log would mark the connection as allowed without showing that the key had been sent.
“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 said. “An operator reviewing logs afterwards sees an ordinary permitted request.”
Read nextAnthropic reports 18-year-old server firmware flaw, with vendor updates still pendingPayton Kennedy discovered the vulnerability
Endor Labs researcher Payton Kennedy discovered the flaw, tracked as CVE-2026-136998, and demonstrated it with a dummy Anthropic key. Kennedy reported it to Docker and said the faulty code first appeared in Docker Sandboxes 0.43.0.
According to Kennedy, the affected credential-handling code is shared by 13 built-in services: Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI. A stolen AI provider key could result in charges to its owner’s account. A GitHub token could provide repository access if its permissions allow it.

Version 0.55.0 fixes the credential handling
Docker Sandboxes 0.55.0 makes credential injection follow the destinations approved separately for API keys and OAuth credentials. It also treats credential bindings with no approved destinations as missing.
Users are advised to upgrade to version 0.55.0 and review credential approvals given to third-party kits. If a kit has suspicious configuration or destination changes, they should consider rotating any potentially exposed key.



