A security flaw in Docker Sandboxes let a third-party AI agent kit steal a developer's real API keys — from Anthropic, OpenAI, GitHub and ten other services — after a single honest approval. The vulnerability, tracked as CVE-2026-136998, was fixed in Docker Sandboxes v0.55.0, released on November 30, 2026.
The promise and the flaw
Docker Sandboxes promises that API keys never enter the sandbox where the AI agent runs: the key stays on the host, the agent sends only a placeholder header, and a host-side proxy swaps in the real value only for approved destinations. Since version 0.43.0, a consent gate asks the developer to approve the services and domains a third-party kit wants to use, and records the decision in ~/.config/sbx/credentials.yaml.
The problem, found by Endor Labs, is that this decision is recorded only by service name — and the approved domains list is written but never read at request time. The approval is not tied to the kit that was reviewed, nor to its content. What the prompt promises is therefore never actually enforced afterward.
How the attack works
The researcher demonstrated the version swap in five steps: the attacker publishes kit v1 whose inject block names only api.anthropic.com; the operator reads the prompt, which describes the destination accurately, and approves; the attacker ships kit v2 at the same tag, branch or directory, changing only the inject domain to a host they control; on the next sbx create, Docker finds the recorded approval and shows no new prompt, warning or diff; the proxy then injects the real key into requests to the attacker's host. The kit can also add the attacker's host to the sandbox's network egress allowlist without asking permission.
Thirteen built-in services share the same injection path: anthropic, copilot, cursor, devin, droid, github, google, groq, mistral, nebius, openai, openrouter and xai. Because credentials are global by default, the redirected key is the same one every sandbox on the machine uses. For AI providers, that means usage billed to the victim's account; for GitHub, a typical developer token can grant write access to repositories.
Severity and history
The flaw scored 8.2 (High) under CVSS 3.1 and 6.9 (Medium) under CVSS 4.0, classified as CWE-863 (incorrect authorization). It affects versions 0.43.0 up to before 0.55.0. Endor Labs reported the issue to Docker on September 21, 2026, and disclosure coincided with the fix release on November 30.
CVE-2026-136998 is the same researcher's second Docker Sandboxes finding in a month: the first, CVE-2026-103916, let the file-copy command reach folders beyond those allowed and was fixed in version 0.51.0 on November 3. In both cases the microVM isolation held — what failed was what the operator's decision was attached to.
What to do now
Docker Sandboxes users should upgrade to version 0.55.0 and review the approvals already granted to third-party kits in ~/.config/sbx/credentials.yaml, removing any that are no longer needed — each one is a standing approval for whatever the kit's reference serves next. It is also worth checking inject domains and network rules on every sbx create, pinning fixed commits instead of tags or branches where possible, scoping keys to specific sandboxes with --sandbox, and rotating keys if there is any doubt that an approved kit changed.
Image: Endor Labs diagram showing how an approval of kit v1 silently covers later versions. Credit: Endor Labs.
Sources
- Endor Labs — CVE-2026-136998: Docker Sandboxes vulnerability lets malicious AI agent kits steal developers' API keys (30/11/2026)
- Docker Docs — Docker Sandboxes release notes (v0.55.0, 30/11/2026)
Transparency note: this article was produced with the assistance of artificial intelligence, cross-checked against public posts on X and internet sources, and reviewed before publication. Please consult the original sources to confirm the information.
By Muse