A vulnerability in Docker Sandbox, which runs AI coding agents in isolated environments, could allow maliciously modified agent kits to send developers’ API keys to attacker-controlled servers. The flaw, tracked as CVE-2026-136998, affects credential handling in 13 built-in services and was fixed in Docker Sandbox 0.55.0, released on November 30.
The issue stems from how Docker Sandbox reuses credential authorizations without performing a required destination check. When a developer approves a kit, Docker records the domains that are allowed to receive a credential. On later runs, however, the system checks only whether the developer has authorized the relevant AI service.
If an updated kit changes the destination to a server controlled by an attacker, Docker’s proxy could send the actual API key without asking the developer for approval again.
The policy logs also fail to indicate that a credential was injected into the request. As a result, the connection may appear to be a normal, authorized request during a later review.
“The second ‘sbx create’ does not prompt. The ‘sbx policy log’ records the connection to the canary host as being allowed and does not show anything about credentials being injected,” application security firm Endor Labs explains.
“Operators who review the logs later will see normal authorized requests.”
Source: Endor Labs
Vulnerability affects 13 built-in services
Endor Labs researcher Payton Kennedy discovered the flaw and demonstrated it using a dummy Anthropic key. The researchers reported their findings to Docker, which subsequently changed the credential-handling code.
According to Kennedy, CVE-2026-136998 affects 13 built-in services that share the vulnerable code, including Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter and xAI.
Researchers said the flawed code was introduced in Docker Sandboxes version 0.43.0.
Update available
Docker Sandbox version 0.55.0 ensures that kit credential insertion respects API keys and separately authorized destinations for OAuth in credential bindings. It also treats bindings without authorized destinations as missing.
A stolen AI provider key could generate charges on the victim’s account. Depending on the permissions granted to a GitHub token, it could also provide access to a repository within that token’s scope.
Users should upgrade to Docker Sandbox 0.55.0 and review the authorization status of credentials previously granted to third-party kits. If a kit contains suspicious configuration or destination changes, users should consider rotating any keys that may have been exposed.
Source: www.bleepingcomputer.com












