Security & Privacy

Docker Sandboxes flaw allows credential theft via AI agent kits

Payton Kennedy from Endor Labs discovered CVE-2026-136998, a flaw in Docker Sandboxes version 0.43.0 that allows malicious AI kits to steal API keys. The vulnerability impacts 13 services including OpenAI and GitHub, prompting a fix in version 0.55.0 released on November 30.

Docker Sandboxes flaw allows credential theft via AI agent kits

Flaws in credential validation

I find the credential reuse flaw in Docker Sandboxes completely unacceptable for anyone using third-party AI agent kits. Payton Kennedy from Endor Labs discovered CVE-2026-136998 by using a dummy Anthropic key to show how an updated kit changes its destination to an attacker-controlled server. When a developer approves a kit, Docker records which domains may receive the key, but the tool only checks if the developer approved the AI service on subsequent runs. This lack of checks means Docker’s proxy sends the real API key without prompting the developer when a kit changes its destination. An operator reviewing the policy log sees an ordinary permitted request because the log records the connection to the canary host as allowed and says nothing about a credential being injected into it. Kennedy identified that the faulty code entered the system in version 0.43.0. Endor Labs explains that "the second ‘sbx create’ shows no prompt," so a developer will not know if a new destination is being used.

Service impacts and the fix

The faulty code in Docker Sandboxes version 0.43.0 impacts 13 built-in services. These services include Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI. Stolen AI provider keys could incur charges to a victim’s account, while a GitHub token could grant access to repositories if this is within its scope. I recommend that users upgrade to version 0.55.0, which Docker released on November 30. The update ensures that kit credential injection respects the destinations approved separately for API keys and OAuth in credential bindings, and treats bindings with no approved destinations as missing. You should also review any credential approvals you previously granted to third-party kits for any unauthorized changes. If you see suspicious configuration or destination changes on a kit, you must rotate the potentially exposed key. Users should check if any kits they use have undergone recent updates that changed their destination settings. An attacker distributing malicious updates to third-party agent kits could exploit this flaw to steal sensitive credentials.

Specification Value
Vulnerability ID CVE-2026-136998
Affected Version 0.43.0
Fixed Version 0.55.0
Patch Date November 30
Impacted Services 13