Docker patches AI agent kit approval flaw in Sandboxes

Docker has fixed a vulnerability in Docker Sandboxes that could allow a malicious update to an approved third-party AI agent kit to obtain developers’ API keys. The issue, tracked as CVE-2026-136998, affects Docker Sandboxes versions before 0.55.0 on macOS, Windows and Linux. Docker released version 0.55.0 to address it.
Endor Labs researcher Peyton Kennedy demonstrated that, after a developer approved a kit’s credential request once, a later version of that kit could redirect a real credential to an attacker-controlled server without generating another prompt. His proof of concept used a dummy Anthropic key and a test server on his own machine. No exploitation in the wild has been reported.
Approval was not bound to approved destinations
Docker Sandboxes is designed to keep raw credentials outside the virtual machine where an AI coding agent runs. A developer stores a secret on the host with sbx secret set. The agent sends a request using a placeholder header, while a host-side proxy replaces that placeholder with the real key before the request leaves the machine.
The destination for that request is defined by the agent kit, which may be fetched from a registry, a Git reference or a local directory. Beginning with version 0.43.0, Docker stored a binding after a developer approved a kit’s credential request. The binding recorded both a service and approved domains. Kennedy found that the stored domain list was not checked when credentials were injected later.
Instead, the request-time logic checked only whether a binding existed for the service name. The proxy could then inject the genuine key into a request to any domain named by the kit’s current version. In the researcher’s test, a kit initially approved for api.anthropic.com was replaced at the same reference by a version pointing to a test server. The next sandbox creation showed no new prompt and sent the dummy key to that server in cleartext.
Scope, severity and affected credentials
The approval could persist after the sandbox was deleted. Kennedy also found that a malicious kit update could add an attacker-controlled server to the sandbox network allowlist without another prompt. The policy log marked the connection as allowed but did not record that a key had been injected.
Thirteen built-in integrations use the affected credential-injection path, including Anthropic, OpenAI, GitHub and Google. Kennedy rated the flaw 8.2 High under CVSS 3.1 after correcting the attack vector to local, because the attacker relies on a kit file fetched by the developer rather than direct network access to the developer’s machine. Under CVSS 4.0, his score was 6.9 and Docker’s was 5.6, both Medium.
The virtual machine boundary held during the tests. The failure concerned what the developer’s consent was attached to: a service-level approval could survive a change to the kit artifact and its requested destination. Globally stored secrets raise the potential impact because a redirected credential can be the key used by every sandbox on that machine. A stolen GitHub token would carry whatever scopes the developer had granted it.
What version 0.55.0 changes
Docker’s release notes state that version 0.55.0 now enforces destinations approved for API-key injection and OAuth separately. It also treats a binding with no approved destinations as missing. The published notes do not mention Kennedy’s requests to bind approvals to a kit content digest or to log every credential injection.
Cloud sandboxes use a separate secret store, and it has not been established whether they share the affected authorization logic. The research concerned the local product only. Kennedy reported this issue and an earlier host file-copy flaw to Docker on September 21; Docker fixed the earlier issue on November 3.
Actions for development teams
Teams using Docker Sandboxes should upgrade to 0.55.0, then review ~/.config/sbx/credentials.yaml or %APPDATA%\sbx\credentials.yaml on Windows and remove bindings granted to third-party kits. Those files record approvals rather than secret values.
For systems that ran vulnerable versions, teams should rotate provider keys associated with third-party kits that may have changed. They should inspect each kit’s credential injection domains and permissions.network.allow entries whenever creating a sandbox, pin kits to fixed commits or maintain reviewed local copies where possible, and use --sandbox for per-sandbox secrets instead of global keys. The practical implication is that teams need to treat every agent-kit update as a potential change to the destination and scope of approved credentials.

