A vulnerability in Docker Sandboxes, a tool designed to run AI coding agents inside isolated environments, could allow attackers to steal developers’ API keys by distributing malicious updates to third-party agent kits.
The flaw stems from how Docker Sandboxes reuses credential approvals and omits critical destination checks on later executions. When a developer first approves a kit, Docker records the permitted domains for the key. On subsequent runs, however, the system only verifies whether the AI service itself was previously approved. If an updated kit redirects traffic to an attacker-controlled server, Docker’s proxy forwards the real API key without any additional prompt.
Policy logs further obscure the issue by recording the connection as allowed without indicating that a credential was injected into 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,” Endor Labs explained.
Attack Flow and Impact
The vulnerability, tracked as CVE-2026-136998, was identified by Endor Labs researcher Payton Kennedy using a dummy Anthropic key. The researcher responsibly disclosed the finding to Docker, which released a fix in version 0.55.0 on November 30, 2026. The patched release ensures that credential injection respects separately approved destinations for API keys and OAuth bindings and treats bindings without approved destinations as missing.
CVE-2026-136998 impacts 13 built-in services that share the vulnerable credential-handling code: Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI. A stolen AI provider key can generate unauthorized charges, while a compromised GitHub token may grant access to private repositories depending on its scope.
The faulty code was introduced in Docker Sandboxes version 0.43.0. Administrators should upgrade to version 0.55.0 and review all previously granted credential approvals. Any kits showing suspicious configuration or destination changes warrant immediate rotation of the associated keys.


