A critical flaw in Docker Sandboxes could have allowed attackers to steal API keys for 13 built-in services, including Anthropic and OpenAI, via malicious third-party kit updates. The bug was patched in version 0.55.0, released on November 30.
TL;DR
- A vulnerability in Docker Sandboxes (CVE-2026-136998) could have sent API keys to attacker-controlled servers via malicious updates to third-party kits.
- Keys for 13 built-in services, including Anthropic, OpenAI, GitHub, and Google, were at risk.
- Users should upgrade to version 0.55.0, review kit approvals, and rotate exposed keys.
What happened
A flaw in Docker Sandboxes, Docker's isolated environment for running AI coding agents, could have allowed a malicious update to a third-party kit to steal a developer's API keys, according to a report by BleepingComputer on December 1. The bug, tracked as CVE-2026-136998, was fixed in version 0.55.0, released on November 30.
Payton Kennedy of Endor Labs discovered the issue, tested it with a dummy Anthropic key, and reported it to Docker. The vulnerability was introduced in Docker Sandboxes version 0.43.0.
When a developer approves a third-party kit, Docker records which domains may receive the API key. However, on later runs, it only checked whether the AI service itself had been approved. If an updated kit redirected the key to an attacker's server, Docker's proxy injected the real key without asking again, and the policy log showed only an allowed connection with no mention of the credential injection.
Why it matters
The vulnerability put credentials for 13 built-in services at risk, including Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI. A stolen AI provider key could run up charges on the victim's account, and a GitHub token could expose repositories within its scope.
This incident highlights the importance of securing API keys and regularly reviewing kit approvals. Users are advised to upgrade to the latest version of Docker Sandboxes, review credential approvals already granted to third-party kits, and rotate any key that may have been exposed if they saw suspicious configuration or destination changes.
Key facts
- The vulnerability is tracked as CVE-2026-136998.
- The flaw was introduced in Docker Sandboxes version 0.43.0 and fixed in version 0.55.0 on November 30.
- API keys for 13 built-in services were at risk, including Anthropic, OpenAI, GitHub, and Google.
- Payton Kennedy of Endor Labs discovered and reported the issue.
- The bug could have allowed malicious updates to third-party kits to steal API keys without prompting the developer.
- Users should upgrade to version 0.55.0, review kit approvals, and rotate exposed keys.
- The vulnerability could have resulted in unauthorized access to AI services and GitHub repositories.
Context
Stolen developer keys have become a common target for attackers. Security firm CloudSEK reported last month that an AI-automated campaign called React2Keys stole more than 50,000 credentials across 400 organizations.
This incident underscores the need for robust security measures in AI development environments. As AI services become more integrated into development workflows, securing API keys and other credentials is crucial to preventing unauthorized access and potential data breaches.
