Software

Docker patches Sandboxes flaw that let an updated agent kit send developers' API keys to an attacker

A one-time approval of a third-party AI agent kit could be reused after the kit was changed to point at an attacker's server; Docker fixed the issue, CVE-2026-136998, in Sandboxes 0.55.0 on November 30.

Docker has fixed a flaw in Docker Sandboxes, its tool for running AI coding agents inside isolated virtual machines, that could let a third-party “agent kit” quietly redirect a developer’s API keys to a server it controlled. The bug is tracked as CVE-2026-136998. Docker released the fix in version 0.55.0 on November 30, according to the researcher’s write-up.

How the attack worked

Agent kits are add-ons that configure an agent, including which services it can reach. When a developer first creates a sandbox with a kit, the tool shows a consent prompt and, if approved, stores a binding for that service, such as Anthropic’s API.

Endor Labs researcher Peyton Kennedy found that this approval was too broad. The list of approved domains was saved but not checked when requests were made. The runtime only tested whether a binding existed for the service name. It was not tied to the kit’s name, source or contents.

So an attacker could publish a harmless kit, wait for a developer to approve it, then update the kit so that its settings pointed at the attacker’s host. On the next sandbox creation, no new prompt appeared, and Docker’s proxy attached the real key to requests going to that host. In the researcher’s test, a dummy Anthropic key reached a test server in cleartext. A kit could also add its own servers to the network allowlist without a prompt.

Endor Labs says the virtual machine boundary held and the raw keys never entered the VM; the leak happened because the kit controlled where the host-side proxy sent the key. The log also recorded the connection as allowed without mentioning that a key had been injected.

Who is affected

Versions before 0.55.0 are affected, back to 0.43.0, which introduced the consent system. Thirteen built-in integrations share the code path, including Anthropic, OpenAI, GitHub and Google, though only Anthropic was tested. The Hacker News reports that no attacks using the flaw have been seen.

Severity scores differ. The researcher rated it 8.2 (High) on CVSS 3.1 after first scoring it 9.3, and 6.9 (Medium) on CVSS 4.0. According to The Hacker News, the vendor’s CVSS 4.0 score was 5.6. Keys saved with sbx secret set are global by default, so one stolen key would affect every sandbox on the machine.

What to do

Update to 0.55.0, which enforces approved destinations separately for API keys and OAuth. For older installs, Endor Labs advises reviewing the credentials file at ~/.config/sbx/credentials.yaml (or its %APPDATA% equivalent on Windows), removing bindings granted to third-party kits, pinning kits to a fixed commit, scoping keys to a single sandbox and rotating keys if a kit changed after approval.

The researcher also asked Docker to tie approvals to a kit’s content and to log every key injection. According to The Hacker News, the published release notes mention neither. It is Kennedy’s second Docker Sandboxes bug in a month; the first, a file-copy flaw, was fixed on November 3.

Comments

Comments are checked before they appear, usually within an hour. Be kind and stay on topic; spam, ads and personal attacks are removed. Your name and comment are public. Privacy

Related stories