What happened
A vulnerability tracked as CVE-2026-136998 in Docker Sandboxes, a tool for running AI coding agents in isolated environments, could leak developers' API keys to an attacker who distributes malicious updates to third-party agent kits, according to BleepingComputer. The faulty code was introduced in version 0.43.0.
How the attack works
- When a developer approves a third-party kit, Docker records which domains may receive the credential.
- On later runs, Docker checks only whether the developer approved the AI service, not the specific destination.
- If a malicious update changes the destination to an attacker-controlled server, Docker's proxy sends the real API key there without prompting.
- The policy log records the connection as allowed and does not show that a credential was injected. Endor Labs notes that the second
sbx createshows no prompt.
Who is affected
The flaw affects 13 built-in services that share the vulnerable code, including Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter and xAI. A stolen AI provider key could generate charges on the victim's account, and a stolen GitHub token could expose repositories within its scope.
Endor Labs researcher Payton Kennedy found the flaw and demonstrated it with a dummy Anthropic key.
Fix
Docker fixed the issue in Docker Sandboxes 0.55.0, released November 30. The update makes credential injection respect destinations approved separately for API keys and OAuth, and treats bindings with no approved destinations as missing.
Recommended actions
- Upgrade Docker Sandboxes to 0.55.0 or later.
- Review credential approvals previously granted to third-party kits.
- If a kit's configuration or destinations changed in a way you cannot explain, rotate the potentially exposed API keys and tokens.
- Prefer short-lived, narrowly scoped keys with spending limits for agent workloads.