A vulnerability in Docker Sandbox, a tool designed to run AI coding agents in isolated environments, could allow malicious updates to steal developers’ API keys and send them to attacker-controlled servers. The flaw, tracked as CVE-2026-136998, affects credential handling for 13 built-in services and was fixed in Docker Sandbox version 0.55.0.
Docker Sandbox flaw could expose API keys
The vulnerability stems from the way Docker Sandbox reuses credential authorization without performing a critical destination check. When a developer approves a kit, Docker records the domains that are allowed to receive a credential.
However, during later runs, Docker Sandbox checks only whether the developer has authorized the relevant AI service. If a kit is updated to change its destination to a server controlled by an attacker, Docker’s proxy could send the real API key without asking for approval again.
The policy logs also fail to clearly show that a credential was injected into the request. This could make the activity appear to be a normal, authorized connection 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 said in its analysis of CVE-2026-136998.
“Operators who review the logs later will see normal authorized requests.”

Source: Endor Labs
13 built-in services affected
Endor Labs researcher Payton Kennedy discovered the vulnerability and demonstrated it using a dummy Anthropic key. The researchers reported their findings to Docker, which subsequently modified the affected code.
According to Kennedy, CVE-2026-136998 affects 13 built-in services that share the vulnerable credential-handling code:
- Anthropic
- Copilot
- Cursor
- Devin
- Droid
- GitHub
- Groq
- Mistral
- Nebius
- OpenAI
- OpenRouter
- xAI
Researchers said the flawed code was introduced in Docker Sandboxes version 0.43.0. A stolen AI provider key could result in charges to the victim’s account. Depending on the permissions assigned to a GitHub token, it could also provide access to repositories within that token’s scope.
Docker releases version 0.55.0
Docker released version 0.55.0 on November 30th. The updated release ensures that credential insertion for kits respects API keys and separately authorized destinations for OAuth in credential bindings. It also treats bindings without authorized destinations as missing.
Users should upgrade to Docker Sandboxes 0.55.0 and review credentials previously authorized for third-party kits. If a kit contains suspicious configuration or has changed its destination, users should exercise caution and rotate any keys that may have been exposed.
Source: www.bleepingcomputer.com


