Docker Fixes Flaw That Let Updated AI Agent Kits Steal Approved API Keys
A flaw in Docker's tool for running AI coding agents let an updated third-party kit redirect a previously approved API key to an attacker's server without a new prompt, Endor Labs found.
Docker fixed a flaw in Docker Sandboxes, its tool for running AI coding agents in isolated environments, that let an updated third-party "agent kit" silently redirect a developer's already-approved API key to an attacker's server. The vulnerability, tracked as CVE-2026-136998, was reported to Docker on 21 September 2026 by researcher Peyton Kennedy of Endor Labs and fixed in Docker Sandboxes version 0.55.0, released 30 November 2026.
Docker Sandboxes lets developers run AI coding agents such as Cursor or Devin inside containers while a host proxy holds the real API keys: the agent sends requests with a placeholder credential, and the proxy swaps in the real key only for destinations the developer has approved, according to Endor Labs' writeup. The design is meant to keep an agent from ever seeing a developer's raw credentials. Endor Labs' writeup explains that the flaw undermined exactly that protection: once a developer approved a third-party kit's request to send a credential to a given service, Docker never re-checked the actual destination on later runs.
That meant a kit author — or anyone able to push an update to a kit — could publish an innocuous first version, wait for a developer to approve it once, then ship a second version that changed only the credential's injection target. No new approval prompt appeared. Kennedy describes the root cause directly: "The binding's domains list is written and never read," according to the Endor Labs report.

Thirteen built-in services shared the flaw
Endor Labs' advisory lists thirteen built-in service integrations that shared the vulnerable credential-handling code: Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter and xAI. The flaw was present from version 0.43.0, when Docker added the credential-consent mechanism, through version 0.54.x. Endor Labs scored the issue 8.2 under CVSS 3.1 and 6.9 under CVSS 4.0.
Docker's own security announcement confirms the mechanism: "A modified third-party kit could reuse a previously approved service binding while changing its credential injection destination, causing the host proxy to send a stored provider credential to an attacker-controlled host." The fix in 0.55.0 enforces stricter validation of approved destinations and treats any binding that lacks one as missing, rather than defaulting to trust, according to Docker's release notes.
Why it matters beyond one product
The underlying pattern — a one-time human approval that a later, automated update can quietly reuse — is not specific to Docker. It applies to any plugin, extension or "kit" ecosystem built around coding agents, where developers are asked to trust a package once and then receive silent updates afterward. For students and researchers experimenting with agentic coding tools, the episode is a concrete illustration of why credential scope and update provenance matter as much as sandboxing itself: isolating an agent's code execution does nothing if the channel that delivers credentials to approved services is not re-validated on every change.

Endor Labs recommends several concrete steps for anyone running Docker Sandboxes before the fix: review which third-party kits were previously granted credential access, pin kits to a fixed commit rather than a mutable tag or branch so an update cannot change silently, restrict each credential to the smallest set of sandboxes that need it, and rotate any API key that was exposed to a kit that may have changed since approval.
What changed in the fix
Docker's 0.55.0 release, dated 30 November 2026 in its release notes, ties credential injection to the specific destination a developer approved rather than to the service name alone, closing the gap Kennedy identified. Developers running an older version are advised by Endor Labs to upgrade immediately rather than wait for an automatic update, since the vulnerability itself could in principle be triggered by exactly that kind of silent update.
A quick question for readers
Which skill will matter most for getting a job in 2030?
Everyone has a prediction. Add yours and see what students are betting on.
Pick an answer, create a free account in a minute, and your vote counts. Already a member? Sign in
Comments 3
Comment-
The root cause line is the damning one: "the binding's domains list is written and never read." That's not a subtle logic bug, that's a cons…
-
The root cause line is the whole story: "the binding's domains list is written and never read." That's not a subtle logic bug, that's a vali…
-
The line that jumps out is "the binding's domains list is written and never read" — that's not a subtle logic bug, that's the whole check be…
Join free to read the full comments and reply Comments are between members; an account takes a minute.
Source: Endor Labs
Sources (3)
- Peyton Kennedy. CVE-2026-136998: Docker Sandboxes vulnerability lets malicious AI agent kits steal developers' API keys. Endor Labs, 2026. endorlabs.com ↗ · checked 3 Dec 2026
- Docker. Security announcements. Docker Docs, 2026. docs.docker.com ↗ · checked 3 Dec 2026
- Docker. Sandboxes release notes. Docker Docs, 2026. docs.docker.com ↗ · checked 3 Dec 2026