# Docker Fixes Flaw That Let Updated AI Agent Kits Steal Approved API Keys

URL: https://edufabtech.com/news/docker-sandboxes-cve-2026-136998-api-key-flaw  
Section: News · Technology  
Published: 2026-12-03  
Publisher: EduFabTech (https://edufabtech.com)

> Endor Labs disclosed a Docker Sandboxes flaw, patched 30 November 2026, that let an updated AI agent kit silently redirect a developer's approved API key to an attacker-controlled server.

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.

![A three-step timeline shows how a one-time kit approval was exploited: developer approves a kit, the kit updates its credential destination with no new prompt, and the host proxy sends the key to an attacker.](https://edufabtech.com/uploads/2026/12/docker-sandboxes-cve-2026-136998-api-key-flaw-2.png)
*A three-step timeline shows how a one-time kit approval was exploited: developer approves a kit, the kit updates its credential destination with no new prompt, and the host proxy sends the key to an attacker. — EduFabTech · Own work*

## 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.

![A CVSS severity ladder highlights that Endor Labs rated the Docker Sandboxes flaw "High" at 8.2 under CVSS 3.1 (6.9 under CVSS 4.0).](https://edufabtech.com/uploads/2026/12/docker-sandboxes-cve-2026-136998-api-key-flaw-3.png)
*A CVSS severity ladder highlights that Endor Labs rated the Docker Sandboxes flaw "High" at 8.2 under CVSS 3.1 (6.9 under CVSS 4.0). — EduFabTech · Own work*

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.

## Sources

1. Peyton Kennedy. (2026). CVE-2026-136998: Docker Sandboxes vulnerability lets malicious AI agent kits steal developers' API keys. Endor Labs https://www.endorlabs.com/learn/cve-2026-136998-docker-sandboxes
2. Docker. (2026). Security announcements. Docker Docs https://docs.docker.com/security/security-announcements/
3. Docker. (2026). Sandboxes release notes. Docker Docs https://docs.docker.com/ai/sandboxes/release-notes/

---
Source page: https://edufabtech.com/news/docker-sandboxes-cve-2026-136998-api-key-flaw  
Quote with a link to the source page. © EduFabTech.
