A high-severity flaw in Docker Sandboxes could let a malicious AI agent kit steal a developer’s real API keys for Anthropic, OpenAI and GitHub. The flaw, tracked as CVE-2026-136998, was disclosed on 30 November, the same day Docker shipped the fix in version 0.55.0.
How the Approval Was Hijacked
Docker Sandboxes runs coding agents such as Claude Code and Codex inside virtual machines, promising raw API keys never enter the sandbox. A proxy on the host swaps a placeholder for the real key when the agent calls an approved destination, so the agent works without ever holding the key.
Version 0.43.0 added a consent gate: the developer approves each credential and the domains it may reach. But approval was recorded by service name only, not by kit, and the domain list was written and never read. A later kit update could send the key somewhere new, with no prompt.
The attack needs one approval and one changed line. A kit first declares only the provider’s real domain, and the developer approves. The attacker then ships a new version at the same tag, pointing the key at a server they control. The next run passes with no prompt or warning.
Thirteen built-in services share the same injection path, including Anthropic, OpenAI, GitHub, Google, Groq and Mistral, though only the Anthropic binding was demonstrated. A stolen provider key means usage billed to the victim, while a stolen GitHub token can carry write access to the victim’s repositories.
The researcher found a telling clue inside the binary: a function named MissingDomainsForService, which describes exactly the check that is missing. It does not appear to gate the runtime path. Docker’s own release notes for version 0.55.0 say the release strengthens credential and workspace protections.
Our Read
The flaw is embarrassing because Docker’s sandbox pitch is trust: keys never enter the virtual machine. That promise held — the key never crossed the boundary. What broke was the consent model around it. A prompt that asks once and never again is not a control; it is a souvenir.
This is Endor Labs’ second Docker Sandboxes finding in a month, after a file-copy flaw fixed in version 0.51.0. The pattern is the same: the isolation held, but the operator’s decision was attached to the wrong thing. Teams using third-party kits should re-check every update, because the tool will not.
Why It Matters
Coding agents now hold the keys to production: provider accounts, repositories, deployment tokens. Sandboxes exist so developers can let agents run wild without handing them the kingdom. A flaw that quietly redirects those keys to an attacker’s server breaks the one guarantee the whole workflow rests on.
Anyone running Docker Sandboxes should upgrade to version 0.55.0 now and review the bindings stored in their credentials file, removing any granted to third-party kits. Keys should be scoped to individual sandboxes rather than stored globally, and any key approved for a kit that later changed should be rotated.
Background
Docker Sandboxes, built around the sbx command line, runs coding agents in isolated microVMs and has become a popular way to give agents file and network access safely. Endor Labs reported the flaw to Docker on 21 September, and Docker shipped the fix in version 0.55.0 on 30 November.
Source: Endor Labs research and Docker release notes


0 Comments