Docker has fixed a vulnerability in Docker Sandboxes that could let a changed third-party kit redirect a developer’s stored API credential to an attacker-controlled server, without a fresh consent prompt. The flaw, tracked as CVE-2026-136998, lay not in the product’s micro-virtual-machine boundary but in the authorization check that decided where credentials could be sent.

Docker Sandboxes runs AI coding agents inside isolated environments. Its credential design keeps the real key on the host: an agent sends a placeholder, and a host-side proxy substitutes the stored credential for requests. That arrangement depends on the proxy checking both the service and the destination the developer approved.

Endor Labs researcher Peyton Kennedy found that the vulnerable versions recorded approved destinations but, when injecting a credential, checked only whether an approval existed for a service. A later kit version could declare a different destination and inherit the earlier approval. Endor Labs demonstrated the behavior with a dummy Anthropic key and a local canary endpoint; this establishes a reproducible flaw, not that real keys were stolen or that attackers exploited it in the wild.

The distinction matters: the sandbox itself was not shown to be breached. Rather, a trusted host component sent a secret outside the boundary on the agent’s behalf. The CVE record says exploitation requires an operator first to approve the service and later to launch a modified kit. Endor Labs says all 13 built-in services use the same injection path, but its direct test used Anthropic; the other services were not separately demonstrated.

The issue affected Docker Sandboxes versions from 0.43.0 up to, but not including, 0.55.0, on macOS, Windows and Linux, according to the CVE record and Endor Labs. Docker’s 0.55.0 release notes say credential injection now enforces approved destinations separately for API keys and OAuth, and treats bindings with no approved destinations as missing. Docker released that version on November 30.

A redirected provider key could incur usage charges; a GitHub token could expose repository access within its granted scope. Endor Labs recommends upgrading to 0.55.0, reviewing approvals given to third-party kits, and rotating affected credentials if a previously approved kit changed unexpectedly. Its advice reflects a precaution, not evidence of known exploitation.

Sources