Docker Sandboxes CVE-2026-136998: How an Agent “Kit” Update Could Send Your Anthropic, OpenAI, or GitHub Keys to an Attacker's Server

By Carlos Montiel | Enterprise AI Specialist
Leer en español →
Published: 2026-12-02 | By: Carlos Montiel | Reading time: ~6 minutes
Docker Sandboxes CVE-2026-136998: How an Agent “Kit” Update Could Send Your Anthropic, OpenAI, or GitHub Keys to an Attacker's Server

You approved once that an agent kit could use your Anthropic key at api.anthropic.com. Weeks later, the kit's author changes one line and your real key travels to another server, with no warning at all. That is what CVE-2026-136998 in Docker Sandboxes allowed; it was fixed in version 0.55.0 (November 30).

How Docker Sandboxes handles credentials

According to the analysis by Peyton Kennedy of Endor Labs, published by The Hacker News on December 1, the developer stores their real key on the host with sbx secret set. The agent inside the virtual machine sends requests with a placeholder value, and a host proxy swaps that placeholder for the real key on the way out. Which destinations receive the real key is defined by the "kit": a packaged agent configuration downloaded from a registry, a Git reference, or a local folder.

The flaw: the domains you approved were stored, but nobody read them

Since version 0.43.0 (September 15), approving a kit's credential request writes a "binding" that records the service and the accepted domains. The problem, per Kennedy: that domain list was never consulted again. At request time, the check only asked whether a binding existed for that service name. The proxy then sent the real key to whatever domains the current version of the kit named. In his words, the approved domains "play no part in that decision."

Researcher's test: 1. Kit approved with api.anthropic.com as the only destination 2. The kit is replaced, under the same reference, with a version pointing to a test server 3. Next sandbox creation: no prompt; the proxy sends the (placeholder) key to the server 4. The approval even survived deleting the sandbox 5. The policy log recorded the connection as allowed, with no mention of key injection

A malicious kit version could also add its own server to the network allowlist without asking for confirmation. Thirteen bundled integrations share that injection path (including Anthropic, OpenAI, GitHub, and Google); Kennedy tested Anthropic with a dummy value. The attacker doesn't need access to the machine: only a prior approval from the developer and a change in the kit's next version.

Severity and status

The score is debated: Kennedy published CVSS 3.1 of 8.2 (High) and CVSS 4.0 of 6.9 (Medium), after moving the attack vector from network to local because the kit is a file the developer downloads; Docker rates it 5.6 (Medium) on CVSS 4.0. Docker's release notes confirm the fix in 0.55.0 (2026-11-30): "credential injection now enforces approved destinations for API keys and OAuth tokens," and a binding with no approved destinations is treated as nonexistent. All earlier versions on macOS, Windows, and Linux are affected. No attacks exploiting it have been reported. Cloud sandboxes have a separate secrets store, and the study doesn't establish whether they shared the logic.

An uncomfortable detail: secrets stored with sbx secret set are global by default, so a redirected key was usable by any sandbox on the machine. A stolen GitHub token grants whatever its permissions allow, typically write access to the developer's repositories.

What to do in your company

If your team uses Docker Sandboxes or third-party agent kits: The general lesson for agents: a one-time "yes, use this key" approval should be tied to the exact content of what was approved (its hash), not to a name. Ask for that from any agent tooling you evaluate. Questions about governing agent credentials: info@guatemalia.com.
Carlos Montiel
Enterprise AI Solutions Architect
LLMs, Agents and Orchestration Specialist
guatemalia.com/#contacto · info@guatemalia.com

Need to implement AI in your company?

Carlos Montiel is an enterprise AI solutions architect. He implements LLMs, Agents, RAG and orchestrators for companies in Guatemala and Latin America. Get in touch for a consultation.

Contact Carlos Montiel

info@guatemalia.com