Vulnerabilities · Agents · Data leaks

Docker sandbox flaw exposed AI provider API keys through silent kit updates

A patched high-severity vulnerability in Docker Sandboxes let malicious agent kits redirect real API credentials to attacker-controlled servers.

Illustration of a layered sandbox container with a credential key escaping through a broken lock toward an external server
Ficha de dados dos nossos anúncios.

Docker has patched a high-severity vulnerability in Docker Sandboxes that allowed malicious third-party AI agent kits to steal developer API credentials by exploiting a gap in the tool's consent mechanism, CSO Online reported.

Tracked as CVE-2026-136998 and carrying a CVSS score of 8.2, the flaw affected Docker Sandboxes versions introduced with v0.43.0, according to CSO Online. Docker released a fix in version 0.55.0 on November 30, 2026.

How the attack worked

Docker Sandboxes are built to keep raw API credentials off the microVM where an AI coding agent runs, with a host-side proxy injecting real keys only into outgoing requests bound for approved domains. CSO Online reported that the consent mechanism records authorization against a service name rather than a specific agent kit version or destination address. An attacker could publish a legitimate-looking kit, obtain developer approval for a trusted domain such as api.anthropic.com, and later update the kit to point requests at an attacker-controlled server. When the developer ran the updated kit, Docker would recognize the prior approval and inject the real credential without issuing any new warning.

Peryton Kennedy of Endor Labs discovered the vulnerability and demonstrated it using a dummy Anthropic API key and a locally hosted canary server, CSO Online reported. The canary server received the actual credential even though the developer had approved a different destination. The attack required neither access to the developer's machine nor a compromise of the sandbox itself.

The exposed credentials could include API keys for Anthropic, OpenAI and other AI providers, as well as GitHub tokens that could potentially grant attackers write access to code repositories, according to CSO Online. The outlet also noted an accountability problem: Docker's policy log records the outbound connection as an allowed request but gives no indication that a credential was injected, leaving developers who review their logs without a visible signal of exposure.

What to watch

Endor Labs recommended that organizations review existing third-party credential approvals, pin agent kits to fixed commits rather than mutable references, restrict credentials to individual sandboxes and rotate any keys associated with a kit that may have changed, CSO Online reported. The vulnerability affects all 13 built-in services that share the same injection mechanism, though Kennedy's demonstration focused on the Anthropic credential path.

Mais da sala de imprensa