Docker Sandboxes flaw could expose AI API keys through tampered agent kit updates

A flaw in Docker Sandboxes, tracked as CVE-2026-136998, could let a malicious third-party kit update redirect developers' AI and GitHub credentials to an attacker. Version 0.55.0 fixes it.

A developer, seen from behind, works at a desk with blurred monitors in a Riyadh office at dusk, with a hardware security key resting in the foreground.

Key points

  • CVE-2026-136998 affects Docker Sandboxes, a tool for running AI coding agents in isolated environments.
  • After a kit is first approved, later runs only check approval of the AI service, not the destination domain receiving the key.
  • An updated kit pointing to an attacker server could receive the real key without any prompt, and the policy log does not show that a credential was injected.
  • 13 built-in services are affected, including Anthropic, OpenAI, GitHub, Google and Copilot. The flaw was introduced in version 0.43.0.
  • Docker fixed the issue in version 0.55.0, released on November 30.

What happened

Researchers at application security company Endor Labs disclosed a vulnerability in Docker Sandboxes, a tool that runs AI coding agents inside isolated environments. The issue, tracked as CVE-2026-136998, was found by researcher Payton Kennedy and demonstrated with a dummy Anthropic key.

When a developer approves a third-party agent kit, Docker records which domains are allowed to receive the associated API key. On later runs, the tool only confirms that the developer approved the AI service and does not check the destination again. If a kit update quietly changes the destination to an attacker-controlled server, Docker's proxy forwards the real key without asking the developer.

The policy log also falls short. It records the connection as permitted but does not show that a credential was attached. As a result, anyone reviewing the logs afterwards would see what looks like routine traffic.

Scope and impact

The faulty code first appeared in version 0.43.0. It affects 13 built-in services that share the same credential-handling logic: Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter and xAI.

A stolen AI provider key could run up charges on the victim's account. A GitHub token could give access to repositories, depending on its scope.

Docker addressed the issue in version 0.55.0, released on November 30. Kit credential injection now respects the destinations approved for API keys and OAuth bindings. Bindings with no approved destinations are treated as missing.

Why it matters

AI coding agents are spreading quickly through development teams, often outside formal tooling governance. This case shows that a sandbox can still leak secrets through its trust and update model. Credential flows in developer tooling should therefore be inventoried, controlled and monitored like any other privileged access.

What to do now

  1. Identify any use of Docker Sandboxes across development teams and upgrade every instance to version 0.55.0.
  2. Review credential approvals previously granted to third-party agent kits, and remove any that are no longer needed.
  3. Check affected kits for unexpected configuration or destination changes. Where any are found, rotate the exposed AI provider keys and GitHub tokens.
  4. Review billing and usage on AI provider accounts, and repository access logs, for activity that does not match expected use.
  5. Add AI coding agents and their kits to the software asset inventory and third-party risk process, and use least-privilege, scoped tokens.

How useful was this story?

Related frameworks

Need help acting on this?

Our consultants can assess your exposure and map the change to your controls and evidence.

Talk to an expert

Regulatory updates in your inbox

SAMA, NCA and SDAIA changes and what they mean for your institution — once a month.

E-mails in

We confirm by e-mail; unsubscribe any time. Manage your subscription · Past issues

Schedule a Free Assessment