Docker Sandboxes Flaw Allows Malicious Kits to Exfiltrate AI API Keys Without User Prompts

A vulnerability in Docker Sandboxes enables attackers to steal developers' API keys for AI services by distributing malicious updates to third-party agent kits. The issue, tracked as CVE-2026-136998, arises because the tool reuses previously approved credential bindings and performs insufficient checks on destination domains during subsequent runs. Discovered by Endor Labs researcher Payton Kennedy, the flaw affects 13 built-in services including Anthropic, OpenAI, GitHub, and others. Docker addressed the problem in version 0.55.0 released on November 30, 2026, by enforcing separate destination approvals for API keys and OAuth bindings. Users are advised to upgrade immediately and rotate any potentially exposed credentials if suspicious changes appear in kit configurations.

BleepingComputerTranslated from English

Read at source

A vulnerability in Docker Sandboxes, a tool designed to run AI coding agents inside isolated environments, could allow attackers to steal developers’ API keys by distributing malicious updates to third-party agent kits.

The flaw stems from how Docker Sandboxes reuses credential approvals and omits critical destination checks on later executions. When a developer first approves a kit, Docker records the permitted domains for the key. On subsequent runs, however, the system only verifies whether the AI service itself was previously approved. If an updated kit redirects traffic to an attacker-controlled server, Docker’s proxy forwards the real API key without any additional prompt.

Policy logs further obscure the issue by recording the connection as allowed without indicating that a credential was injected into the request. “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 explained.

Attack Flow and Impact

The vulnerability, tracked as CVE-2026-136998, was identified by Endor Labs researcher Payton Kennedy using a dummy Anthropic key. The researcher responsibly disclosed the finding to Docker, which released a fix in version 0.55.0 on November 30, 2026. The patched release ensures that credential injection respects separately approved destinations for API keys and OAuth bindings and treats bindings without approved destinations as missing.

CVE-2026-136998 impacts 13 built-in services that share the vulnerable credential-handling code: Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI. A stolen AI provider key can generate unauthorized charges, while a compromised GitHub token may grant access to private repositories depending on its scope.

The faulty code was introduced in Docker Sandboxes version 0.43.0. Administrators should upgrade to version 0.55.0 and review all previously granted credential approvals. Any kits showing suspicious configuration or destination changes warrant immediate rotation of the associated keys.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Vulns & Exploits

OFFIS DCMTK Toolkit Hit by Critical Missing Authorization and Partial String Comparison Flaws
CISA Warns of Critical Vulnerabilities in Nextgen Healthcare Mirth Connect Allowing Arbitrary Script Execution and Man-in-the-Middle Attacks
Google and Anthropic AI Independently Uncover 18-Year-Old EDK II UEFI Flaw Bypassing Secure Boot