Structured data rendered for: graph
Back to Blog

Docker Sandboxes Flaw Could Redirect Approved AI Keys to Attacker Hosts

Published
Updated
4 min read
Docker Sandboxes Flaw Could Redirect Approved AI Keys to Attacker Hosts

Docker Sandboxes Flaw Could Redirect Approved AI Keys to Attacker Hosts

Organizations using Docker Sandboxes for AI coding agents should treat CVE-2026-136998 as a credential-boundary failure, not merely a sandbox update. The flaw allowed a modified third-party agent kit to reuse an earlier approval while changing the destination that received a stored API key or OAuth token.

Docker fixed the issue in Docker Sandboxes 0.55.0, released on November 30. Teams running versions from 0.43.0 through 0.54.x should upgrade, review third-party kit approvals and rotate any credential that may have been exposed.

The approval was narrower than the runtime check

Docker Sandboxes keeps provider credentials on the host and injects them through a host-side proxy when an agent makes an approved request. The design is meant to keep long-lived secrets out of an environment that may process untrusted code, repositories and prompts.

The vulnerable path recorded the service and destination domains shown in the consent prompt, but the runtime later checked only whether the service had been approved. A kit that initially requested a key for a legitimate provider domain could therefore be changed to request injection at an attacker-controlled destination without triggering a new approval prompt.

The issue was tracked as CVE-2026-136998. Docker describes it as a credential disclosure vulnerability affecting Sandboxes 0.43.0 up to, but not including, 0.55.0. Endor Labs researcher Peyton Kennedy demonstrated the behavior with a dummy Anthropic key; the practical risk is the same for any real key that was approved and then reused by a mutable kit reference.

Why agent kits change the supply-chain boundary

An agent kit is more than a configuration file: it can define the services whose credentials the sandbox proxy may inject and the network destinations the agent may reach. Developers commonly consume kits through references that can point to a branch, tag or directory whose contents change over time.

That creates a supply-chain problem inside the developer toolchain. A kit author can publish a harmless version, wait for a developer to approve its access, and later change the injection destination. The developer may see no new consent request and no obvious indication that a credential was sent elsewhere.

Docker says the fixed release now enforces the approved destinations for API keys and OAuth tokens. The Cloud Security Alliance's rapid research note also warns that the policy log could record an allowed connection without making clear that a credential was injected. In other words, a normal-looking network event is not proof that no secret crossed the boundary.

The affected code path was shared by multiple built-in services, including Anthropic, GitHub, Google and OpenAI. A stolen AI key can create unexpected usage charges and expose prompts or source material. A GitHub token can provide repository access within its granted scope. The blast radius depends on the token's permissions, provider controls and the destinations reachable by the kit.

What defenders should do now

  1. Inventory the runtime. Identify every Docker Sandbox installation and confirm whether it runs 0.43.0 through 0.54.x. Include developer laptops, CI hosts and managed engineering workstations.
  2. Upgrade to 0.55.0 or later. Use Docker's security announcement as the version reference. Record the upgrade time for each host.
  3. Review mutable kit references. Identify third-party kits that were loaded from branches, tags or other references that could change after approval. Pin kits to reviewed commits or maintain an internally reviewed copy.
  4. Re-check credential bindings. Compare approved service destinations with the destinations declared by the current kit. Treat unexplained additions or changes as a possible exposure, even if policy logs show only an allowed connection.
  5. Rotate exposed credentials. Replace provider API keys, OAuth tokens and GitHub tokens that were available to affected kits. Revoke old values after validating the replacements, and inspect provider usage, authentication and audit logs for unexpected destinations, volume or repositories.
  6. Reduce future blast radius. Scope keys per sandbox, minimize token permissions, require review for third-party kits and alert when provider-style authorization headers leave approved service domains. These controls complement the patch; they do not replace it.

If the review finds an unexpected destination or provider activity, activate the organization's incident response process. Preserve host, provider and repository telemetry before rotating or deleting evidence. Treat the key as compromised until the issuing provider confirms that it was not used outside the approved scope.

The broader lesson

Isolation does not eliminate trust decisions; it moves them. Docker Sandboxes kept the key outside the agent, but the host proxy still had to enforce the exact destination approved by the developer. When the authorization check collapsed a specific destination into a generic service name, a mutable kit could turn a one-time approval into standing permission.

For AI development environments, access control must bind identity, content version, credential scope and destination together. A prompt that says “allow this provider” is not enough when the actual security decision is “allow this exact kit version to send this exact credential to this exact domain.”

Sources

FAQ

How to cite

Lucas Oliveira. Docker Sandboxes Flaw Could Redirect Approved AI Keys to Attacker Hosts. 6 Dec 2026. Invaders Cybersecurity. https://invaders.ie/resources/blog/vulnerability/docker-sandboxes-cve-2026-136998-ai-api-keys.

Subscribe via RSS.

Written by

Lucas Oliveira

Research

A DevOps engineer and cybersecurity enthusiast with a passion for uncovering the latest in zero-day exploits, automation, and emerging tech. I write to share real-world insights from the trenches of IT and security, aiming to make complex topics more accessible and actionable. Whether I’m building tools, tracking threat actors, or experimenting with AI workflows, I’m always exploring new ways to stay one step ahead in today’s fast-moving digital landscape.