Startups & Business

Docker Sandbox flaw allows attackers to steal API keys

Researcher Payton Kennedy discovered CVE-2026-136998 in Docker Sandboxes version 0.43.0, which allows malicious updates to steal API keys from 13 services. The vulnerability stems from insufficient destination validation during credential reuse, affecting providers like OpenAI and GitHub.

Docker Sandbox flaw allows attackers to steal API keys

Credential reuse allows key theft

Payton Kennedy from Endor Labs discovered CVE-2026-136998, a flaw in Docker Sandboxes that lets attackers steal API keys by distributing malicious updates to third-party agent kits. The flaw stems from how Docker Sandboxes reuses credential approvals and lacks critical, necessary security checks. When a developer approves a kit, Docker records which domains may receive the key. On subsequent runs, however, Docker checks only whether the developer approved the AI service. If an updated kit changes its destination to a server controlled by an attacker, the Docker proxy sends the real API key to that server without prompting the developer for new permissions. I find the lack of destination validation in these subsequent runs completely unacceptable. The second "sbx create" shows no prompt, and an operator reviewing logs afterwards sees an ordinary permitted request because the "sbx policy log" says nothing about a credential being injected. The researcher noted that the faulty code was introduced in Docker Sandboxes version 0.43.0.

Impacted services and fixes

Kennedy demonstrated the flaw using a dummy Anthropic key. The vulnerability affects 13 built-in services that share the vulnerable credential-handling code.

Detail Information
Vulnerable version 0.43.0
Fixed version 0.55.0
Total services affected 13
CVE identifier CVE-2026-136998

The impacted services include Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI. A stolen AI provider key could incur unexpected charges to the victim’s own bank account, while a GitHub token could grant access to repositories if that token has the appropriate scope. Because the faulty code appeared in version 0.43.0, users must ensure they have updated to version 0.55.0. The researcher, Payton Kennedy, reported the finding to Docker, and the project pushed a security fix in version 0.55.0, which was released on November 30. The latest Docker Sandbox release ensures that kit credential injection respects the destinations approved separately for API keys and OAuth. This fix also treats bindings with no approved destinations as missing. I recommend that you review every single credential approval you previously granted to third-party kits immediately. If you notice any highly suspicious configuration or destination changes on a kit, you should immediately rotate the potentially exposed key as a result to prevent further damage.