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).
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.
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."
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.
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.
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.credentials.yaml in the sbx config directory and remove bindings granted to third-party kits (the file stores approvals, not keys).--sandbox instead of globally.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