A vulnerability in Docker Sandboxes, a tool for running AI coding agents in isolated environments, could allow a malicious update to a third-party agent kit to leak a developer’s API keys. The flaw is tracked as CVE-2026-136998.

How the flaw works

When a developer approves a kit, Docker Sandboxes records which domains are permitted to receive the associated credential. On later runs, however, the product only checks whether the developer has approved the AI service itself, not whether the destination has changed. If an updated kit redirects traffic to a server controlled by an attacker, the Docker proxy sends the real API key to that server without prompting the developer.

According to Endor Labs, the policy log records the connection as allowed and does not show that a credential was injected into it. An operator reviewing logs afterward would see what looks like an ordinary permitted request.

Discovery and fix

Endor Labs researcher Payton Kennedy discovered the issue and demonstrated it using a dummy Anthropic key. The finding was reported to Docker, and the fix shipped in Docker Sandboxes version 0.55.0, released on November 30. The patch ensures that credential injection respects destinations approved separately for API keys and OAuth, and treats bindings with no approved destinations as missing.

Scope of impact

  • Kennedy says the issue 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.
  • A stolen GitHub token could grant access to repositories within that token’s scope.
  • The faulty code was introduced in Docker Sandboxes version 0.43.0.

Recommended actions

Users should upgrade to Docker Sandboxes 0.55.0 and review any credential approvals previously granted to third-party kits. If a kit shows suspicious configuration or destination changes, rotating the potentially exposed key is advisable as a precaution.