Docker Sandboxes Vulnerability Puts AI Credentials at Risk
A security vulnerability in Docker Sandboxes could expose developers’ AI API keys and other credentials to attackers who distribute malicious updates to third-party AI agent kits.
The flaw, tracked as CVE-2026-136998, affects Docker Sandboxes, a tool that runs AI coding agents inside isolated environments. Although these environments aim to limit security risks, a weakness in credential handling could allow an attacker to redirect sensitive authentication data to an unauthorized server.
The issue highlights a growing security concern as developers increasingly rely on AI coding agents and third-party tools.
How the Vulnerability Works
Docker Sandboxes uses credential approvals to control which services can receive developers’ authentication data.
When a developer initially approves an agent kit, Docker records the permitted destinations for its credentials. However, subsequent executions check only whether the developer approved the AI service itself.
As a result, an attacker could exploit a malicious update to change the destination server while retaining the original approval.
Docker’s credential proxy could then send the developer’s real API key to the attacker-controlled server without requesting fresh authorization.
The policy logs also create a visibility gap. They may record the connection as an ordinary permitted request without indicating that Docker injected a sensitive credential into the request.
Consequently, a developer reviewing the logs might see an apparently legitimate connection rather than evidence of credential exposure.
Which AI Services Are Affected?
The vulnerability affects 13 built-in services that share the same credential-handling code.
These include Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter and xAI.
The potential impact depends on the credentials involved and their permissions.
For example, a stolen AI provider key could allow an attacker to generate unauthorized usage charges. Meanwhile, a compromised GitHub token could provide access to private repositories or other resources within its authorized scope.
The vulnerability therefore creates both financial and operational risks for developers and organizations using AI-powered development environments.
Docker Releases a Security Fix
Docker released a fix in Docker Sandboxes version 0.55.0 on November 30, 2026.
The update corrects how credential injection handles approved destinations for API keys and OAuth credentials. It also treats credential bindings without approved destinations as missing.
The vulnerability was discovered by Endor Labs researcher Payton Kennedy, who demonstrated the issue using a dummy Anthropic API key. According to the researcher, the faulty code was introduced in version 0.43.0.
What Developers and Security Teams Should Do
Organizations using Docker Sandboxes should upgrade to version 0.55.0 or later and review previously approved third-party agent kits.
Security teams should also examine changes to kit configurations and destination servers. If a kit has suspicious destination changes, rotate any potentially exposed credentials as a precaution.
Additionally, organizations should review API key permissions, GitHub token scopes and available usage logs. Limiting credentials to the minimum permissions required can reduce the impact of a successful attack.
The incident demonstrates why security controls for AI coding agents must extend beyond initial approval. Organizations should verify credential destinations during every execution and maintain sufficient logging to identify when sensitive authentication data leaves an approved environment.
As AI development tools become more deeply integrated into enterprise workflows, credential protection and third-party agent update security will become increasingly important parts of application security.