Critical Docker Sandboxes Flaw Could Leak OpenAI, Claude & GitHub Keys

Docker has patched a serious security weakness in Docker Sandboxes that allowed malicious AI agent tooling to compromise developer credentials—potentially exposing API keys for OpenAI, Anthropic’s Claude, and GitHub tokens. The issue (tracked as CVE-2026-136998) stems from a failure to re-prompt users after credential approvals when agent kits change versions. The fix was released in Docker Sandboxes version 0.55.0 on November 30, 2026. The vulnerability was introduced earlier in version 0.43.0, which introduced a consent prompt for third-party kits requesting credentials. Security firm Endor Labs rated its severity as “High” (score 8.2) under CVSS v3.1 and “Medium” (score 6.9) under CVSS v4.0.

How the Flaw Works

Docker Sandboxes isolates AI-driven coding agents like Claude Code and Codex within lightweight virtual machines, preventing direct access to the developer’s machine. When agents need API keys, they go through a proxy on the host machine. The proxy ensures agents never see the raw credentials, and traditionally, users approve which agents and versions can use the credentials. However, due to the flaw, once a developer approved an agent kit for a given service, Docker remembered that approval globally—allowing future versions of that kit to repurpose credential access without triggering another approval prompt.

Endor Labs demonstrated the issue using a dummy Anthropic key. Their logs showed that while connections were marked as allowed, records of credential transmission were absent. Although real OpenAI and GitHub keys weren’t specifically tested, Endor identified at least 12 built-in services using the same credential handling logic, suggesting broad exposure risk. Because credentials are stored globally, a compromised key could impact multiple sandboxes—enabling unauthorized activity or repository access wherever write permissions exist.

What Developers Must Do Now

Docker users are urged to immediately update to version 0.55.0 or later. It’s advised to audit existing credential approvals for any third-party kits, especially those that have changed unexpectedly. If there’s suspicion a key has been exposed, rotate it right away—check activity logs with the provider and GitHub for suspicious usage.

Best practices include limiting credential scope to only the sandboxes that need them and using fixed, reviewed versions of third-party kits—not mutable branches or tags that could change without notice.

This issue differs from previous Docker Sandboxes vulnerabilities where agents escaped from a workspace; in this case, isolation remained intact. It also contrasts with past incidents in which credentials were already compromised—here, the vulnerability lies in Docker’s own proxy mechanism failing to enforce the restrictions developers intended.

Why this matters: As AI tools become more integrated into software development and DevOps workflows, mechanisms like Docker Sandboxes are essential for maintaining separation between tools and codebases. A single flaw in credential handling can break this trust boundary, exposing sensitive data across projects. Developers and teams should treat credential approvals like high-stakes permissions—not convenience options. Watch for clearer controls in future Docker releases and for broader audit and policy tools in AI agent ecosystems.