Docker has fixed a flaw in Docker Sandboxes that could let a third-party agent kit hand an attacker a developer’s real application programming interface (API) keys after one approval.
Peyton Kennedy, a senior security researcher at Endor Labs, disclosed CVE-2026-136998 on Nov. 30. Endor rated it 8.2 (High) under version 3.1 of the Common Vulnerability Scoring System (CVSS) and 6.9 (Medium) under CVSS 4.0.
Docker Sandboxes runs each AI coding agent in its own lightweight virtual machine and keeps the keys outside it, on the host, much as AI gateways that hold provider API keys keep credentials in one place. The agent sends a placeholder. A host proxy swaps in the real key, but only for approved destinations.
Kennedy said that separation held throughout, but it was the kit that decided where the host sent the key.
Where the Approval Broke Down
The flaw arrived with version 0.43.0, which added a consent prompt listing the credentials a kit wanted and where they would be sent. The approval was stored against the service name rather than the reviewed kit, and the approved destinations were never checked when keys went out. “A prompt is only as strong as what its answer is bound to,” Kennedy wrote.
In the attack he described, an attacker could publish a kit pointing to the real provider, wait for approval, then repoint it at their own server under the same tag, branch or directory. The next launch showed no prompt or warning. The same update could add the attacker’s server to the sandbox’s list of allowed network connections, too.
In Kennedy’s test, a dummy Anthropic key reached his server unencrypted, while the log showed only an allowed connection. Thirteen built-in services, including Anthropic, OpenAI and GitHub, use the same code path, but he tested only Anthropic’s.
Keys are machine-wide by default, so every sandbox uses the one an attacker could redirect. Per Kennedy, that could mean model charges billed to the victim, or write access to their repositories through a typical GitHub token.
Docker Fixed the Credential Check
Endor reported the flaw to Docker on Sept. 21, and Docker fixed it in v0.55.0 on Nov. 30. The release notes said “credential injection now enforces the approved destinations,” and Docker said exploitation needed an earlier approval followed by a launch of the modified kit. Neither company reported exploitation in the wild.
Kennedy recommended upgrading and, until then, removing approvals given to third-party kits, rechecking a kit’s destinations at every launch, pinning kits to fixed commits, scoping keys to single sandboxes and rotating them if a kit changed.
He said he had found an earlier Sandboxes file-copy flaw, CVE-2026-103916, which Docker fixed in v0.51.0 on Nov. 3. A separate Docker Hub access-token flaw, which Docker has also patched, could have let attackers reach other users’ container repositories.