Incident sheet · Security & Risk
- System
- Security & Risk
- Filed
- Read
- 3 min · 566 words
- Severity
- Routine
Docker Sandboxes bug silently leaked AI API keys to attacker servers
Docker fixed CVE-2026-136998 in Sandboxes 0.55.0 on November 30. The bug, present since 0.43.0, could leak API keys for 13 services including Anthropic, OpenAI and GitHub to attacker-controlled servers.

Event log
- CVE-2026-136998 affects 13 built-in Docker Sandboxes services, including Anthropic, OpenAI, GitHub and xAI.
- Docker shipped the fix in Sandboxes version 0.55.0 on November 30, 2025; vulnerable code arrived in 0.43.0.
- Endor Labs researcher Payton Kennedy found and demonstrated the flaw using a dummy Anthropic key.
- Malicious kit updates could redirect API keys to attacker servers with no prompt and no log trace of credential injection.
Docker shipped a fix on November 30 for a credential-leak flaw that could hand developers' AI API keys to an attacker, and the bug had been present since version 0.43.0. The vulnerability, tracked as CVE-2026-136998, affects 13 built-in services in Docker Sandboxes, the tool for running AI coding agents in isolated environments.
The list of affected services includes Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI — all of which share the vulnerable credential-handling code.
How does the attack work?
The flaw stems from how Docker Sandboxes reuses credential approvals and skips critical checks. When a developer approves a kit, Docker records which domains may receive the key. On subsequent runs, it checks only whether the developer approved the AI service.
That gap opens a concrete path for a malicious update. If an updated third-party agent kit changes the destination to a server controlled by the attacker, Docker's proxy will send the real API key without prompting the developer.
The policy log compounds the problem. It would show that the connection was allowed, without revealing that Docker sent the developer's API key along with the request. Application security company Endor Labs explained: "The second 'sbx create' shows no prompt. 'sbx policy log' records the connection to the canary host as allowed and says nothing about a credential being injected into it."
Endor Labs added the log-blindness point plainly: "An operator reviewing logs afterwards sees an ordinary permitted request."
Who found it, and what does the fix change?
Payton Kennedy, a researcher at Endor Labs, discovered the flaw and demonstrated it using a dummy Anthropic key. He reported the finding to Docker, and the project pushed a fix in version 0.55.0, released on November 30.
The latest release ensures that kit credential injection respects the destinations approved separately for API keys and OAuth in credential bindings. It also treats bindings with no approved destinations as missing, closing the reuse gap that let a swapped destination inherit an old approval.
What can a stolen key actually cost?
The blast radius depends on the credential. A stolen AI provider key could incur charges to the victim's account. A GitHub token could grant access to repositories if that access falls within the token's scope.
For any organization running AI coding agents against third-party kits, that math matters. Per incident, exposure means usage-based billing on the AI side and repository access on the code side — and the logs that would normally flag it show nothing unusual. The gap between compromise and detection is the real liability here.
What should teams do now?
Docker and the researcher recommend a specific two-step response:
- Upgrade to Docker Sandboxes 0.55.0.
- Review any credential approvals previously granted to third-party kits.
Kennedy adds a third step for anyone who finds suspicious configuration or destination changes on a kit: rotate the potentially exposed key out of an abundance of caution.
The version history defines the exposure window. The faulty code shipped in 0.43.0, and the fix landed in 0.55.0 — meaning every deployment in between ran the vulnerable path, and any approval granted in that period deserves a second look. The fix is out; the audit work falls on the operators who trusted those approvals in the first place.
via bleepingcomputer.com (Source)
More from Daniel Okafor
Show full bio
Staff writer covering technology and product news in enterprise information technology and the leaders who run at CIO Monitor.
278 articles
The newsroom digest
One email a day with the stories that matter. No noise.
Cross-references
- Drupal Patches Critical RCE Flaw Exploitable by Anonymous Users
- Barracuda Cloud Breach Traced to St Vendor Key and AI Pentesting Tool
- Atlassian's CVE-2026-21589 Hits Eight Data Center Products at 9.3 Severity
- Malicious PyPI versions of Microsoft's Agent Framework stole Azure and CI credentials
- Leaked Cloud Keys in Docker Hub Images Get Stolen in Under 8 Seconds