Cybersecurity

Docker Sandbox flaw CVE-2026-136998 leaks developer API keys

A vulnerability in Docker Sandbox version 0.43.0 allows malicious third-party agent kits to leak API keys from 13 services including OpenAI and GitHub. The flaw exploits credential approval reuse, prompting Docker to release version 0.55.0 to fix the destination validation process.

Published
Section
Cybersecurity
Reading time
2 minutes
Docker Sandbox flaw CVE-2026-136998 leaks developer API keys

Vulnerability mechanism and detection gaps

Payton Kennedy from Endor Labs discovered CVE-2026-136998, a flaw in Docker Sandboxes that allows malicious updates to third-party agent kits to leak developer API keys. The vulnerability, which originated in version 0.43.0, exploits how the tool reuses credential approvals and lacks critical checks during kit updates. When a developer approves a kit, Docker records which specific domains may receive the key for that service. On subsequent runs, the tool only verifies whether the developer previously approved the AI service. When an updated kit changes its destination to a server controlled by an attacker, Docker’s proxy sends the real API key without prompting the developer, which makes the breach difficult to detect via the standard policy log. This failure ensures the policy log shows the connection as allowed without revealing that Docker sent the developer’s real API key along with the request. An operator reviewing logs afterwards sees only an "ordinary permitted request".

Impacted services and remediation steps

The flaw affects 13 built-in services that share the vulnerable credential-handling code, including Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI. A stolen key could grant access to private repositories or incur charges to a user’s account.

Detail Specification
Vulnerability ID CVE-2026-136998
Affected Version 0.43.0
Fixed Version 0.55.0
Release Date November 30
Affected Services 13

Kennedy demonstrated the leak using a dummy Anthropic key to prove how the proxy bypasses domain restrictions. A stolen AI provider key could incur heavy charges to a victim’s account, while a GitHub token could grant access to repositories if the scope allows it. Stolen credentials also grant access to private codebases or sensitive data depending on the permissions. Docker released version 0.55.0 on November 30 to address the issue. The latest Docker Sandbox release ensures that kit credential injection respects the destinations approved separately for API keys and OAuth in credential bindings and treats bindings with no approved destinations as missing. This fix ensures the tool validates destinations before sending credentials to a kit. Users must upgrade to version 0.55.0 and review any credential approvals they previously granted to third-party kits. If users find suspicious configuration or destination changes on a kit, they should rotate the potentially exposed key out of an abundance of caution.