A vulnerability in Docker Sandboxes could allow an attacker to gain access to developers’ API keys by distributing malicious updates for third-party agent kits.
Agent kits contain the configuration that allows AI agents to run within an isolated Docker environment, including settings for accessing external services.
The vulnerability, registered as CVE-2026-136998, was discovered by Peyton Kennedy, a researcher at Endor Labs. Kennedy demonstrated the vulnerability using a fictitious Anthropic API key. The researcher reported the issue to Docker, after which the project team released a fix in version 0.55.0 on November 30, according to BleepingComputer.
The issue stems from the way Docker Sandboxes reuses previously granted permissions for the use of credentials, combined with the absence of essential checks. When a developer approves a kit, Docker records the domains to which the API key may be sent. In subsequent sessions, however, the system only verifies whether the developer has ever approved the AI service in question.
If an updated kit changes the destination to a server controlled by an attacker, Docker’s proxy will forward the actual API key without requiring the developer’s confirmation. Furthermore, the log only indicates that the connection was allowed. It does not mention that Docker included the developer’s API key with the request.
“During the second ‘sbx create’ action, no notification or confirmation prompt appears. The ‘sbx policy’ log records the connection to the external host as ‘allowed.’ It does not indicate that credentials were included,” Kennedy explains. “An administrator reviewing the logs afterward will simply see a regular, allowed request.”
Thirteen services vulnerable
According to Endor Labs, CVE-2026-136998 affects thirteen built-in services that use the same vulnerable code for processing login credentials. These include Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI.
A stolen key from an AI provider could result in the victim being held liable for the costs of unauthorized use, while a GitHub token, depending on its scope of access, could grant access to repositories.
The researcher noted that the faulty code was introduced in version 0.43.0 of Docker Sandboxes. Users are advised to upgrade to Docker Sandboxes 0.55.0 and check which permissions for credentials they have previously granted to third-party kits.