By Hamza Faisal
Docker Sandboxes promised developers one simple guarantee: your API keys never enter the sandbox where an AI coding agent runs. A newly disclosed vulnerability broke that promise — a malicious agent kit could take a developer's real Anthropic, OpenAI or GitHub key and send it to an attacker's server, without a new prompt, a warning, or a trace in the logs.
The flaw, tracked as CVE-2026-136998, was disclosed on November 30 by security firm Endor Labs, which rated it 8.2 out of 10 on the CVSS severity scale. Docker fixed it the same day in Docker Sandboxes version 0.55.0. Anyone running an earlier version is urged to upgrade now and review the credential approvals they have already granted to third-party kits.
One approval was all it took
Docker Sandboxes runs AI coding agents inside isolated microVMs. Instead of handing an agent a raw API key, developers store the key on the host machine with the sbx secret set command. When the agent needs to call a model provider, it sends its request with a placeholder header — x-api-key: proxy-managed — and the sandbox daemon swaps in the real key only for the approved destination.
Version 0.43.0 added a consent gate to that flow: before a third-party agent kit could use a credential, the developer had to approve it once. The problem, Endor Labs found, was that the approval was keyed only to the service name — "anthropic", "openai", "github" — and not to the kit itself or its version.
That meant a kit could collect one honest approval, then push an update that pointed the credential at a server the attacker controls. The next time the agent ran, the proxy handed over the real key with no new prompt, no diff shown to the developer, and nothing in the logs to say a key had been sent. The binding's allowed-domains list, Endor Labs noted, was written down but never checked at request time.
The attacker needs no access to the developer's machine — only that single approval and one changed line in a configuration file. And because Docker Sandboxes stores credentials globally by default, the redirected key is the same one every sandbox on the machine uses.
Thirteen services shared the same flaw
The vulnerable injection path covers all thirteen built-in services in Docker Sandboxes: Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter and xAI. Any of those keys could have been redirected the same way.
This is the second Docker Sandboxes finding from the same Endor Labs researcher. The first, CVE-2026-103916, let a sandboxed agent use a symlink trick in the sbx cp file-copy command to read or overwrite files outside its approved folders — including cloud credentials and SSH keys. Docker shipped the complete fix for that one in version 0.51.0 on November 3.
Sandboxes for AI agents are only as strong as their weakest channel — and here the consent gate checked the service name, not what the kit was actually doing.
What to do now
Docker's fix is straightforward: upgrade to Docker Sandboxes v0.55.0 or later, which removes the root cause. Endor Labs also advises developers to review any credential approvals they have granted to third-party kits, and to treat repeated sandbox runs against a mutable kit reference — the same tag, branch or folder — as a review trigger, since a kit's contents can change between runs without any visible warning.
For teams that rely on AI coding agents daily, the lesson is simple: keep agent tooling updated as aggressively as the code it writes.



