Docker Sandboxes stopped reading its own consent log — agent kits took keys anyway
CVE-2026-136998: an approved agent kit could change its destination domains in an update and collect your real API keys, no new prompt. Fixed in 0.55.0 — the cleanup is on you.
Docker Sandboxes — the tool that runs AI coding agents inside isolated VMs so they never touch your raw API keys — leaked exactly those keys through its own consent system. CVE-2026-136998, found by Endor Labs researcher Peyton Kennedy: approve a third-party agent kit once, and a later update to that kit could redirect the real Anthropic, OpenAI or GitHub key to any server it named. No second prompt. Docker fixed it in 0.55.0 yesterday; the CVE record went public today.
the only consent the flaw ever needed — every later kit update inherited it, and it survived deleting the sandbox
How does a sandbox leak the keys it was built to protect?
The product's promise is that raw keys never enter the sandbox. You store a key on the host with sbx secret set; the agent inside the VM sends requests carrying a placeholder header; a proxy on the host swaps in the real key on the way out. The sandbox never sees the secret — by design.
The catch sits one layer up. Which destinations deserve the real key is decided by the kit — a packaged agent configuration fetched from a registry, a Git reference, or a local folder. The VM wall held perfectly. It is the proxy's address book that lied.
What exactly went wrong?
Version 0.43.0, released September 15, added the consent system: approving a kit's credential request writes a binding that records the service and the domains you agreed to. The binding was written and never read back. At request time the proxy only checked whether a binding existed for the service name — then sent the real key to whatever domains the current version of the kit named. The list you approved played no part in the decision.
Kennedy's proof is one configuration change: a kit approved with api.anthropic.com as its only destination, replaced at the same reference with a version pointing at a test server on his own machine. The next sandbox creation showed no prompt, and the proxy delivered the key to the attacker-chosen address — he used a dummy value; a real key would have left in cleartext. The policy log recorded the connection as allowed and said nothing about a key being injected. A malicious kit version could even add its own server to the sandbox's network allowlist without a prompt.
- Sep 15 0.43.0 ships the consent bindings — the list that would never be read
- Sep 21 Kennedy reports this and a second flaw to Docker
- Nov 3 the earlier flaw — agents reaching host files — is fixed
- Nov 30 0.55.0 lands with destination enforcement
- Dec 1 CVE-2026-136998 published; no attacks seen so far
A prompt is only as strong as what its answer is bound to. If the approval is not tied to the artifact that was inspected, the next update inherits it. — Peyton Kennedy, Endor Labs
How bad is a redirected agent key?
Worse than the CVSS wrestling suggests. Secrets stored with sbx secret set are global by default, so the redirected key is the one every sandbox on the machine uses. Thirteen built-in integrations share the injection path — Anthropic, OpenAI, GitHub and Google among them — and a typical GitHub token carries write access to your repositories. The scoring argument is itself instructive: Kennedy first rated it 9.3 Critical, then corrected the attack vector to local (the malicious kit is a file you fetch, not a service an attacker reaches) for 8.2 High; under CVSS 4.0 he scores 6.9 and Docker's own score is 5.6. The disagreement is whether harm to the provider account behind a stolen key counts in the base score — an argument worth having, because your outage won't wait for it.
What do you do now?
Upgrade to 0.55.0. The release notes say credential injection now enforces the approved destinations for API keys and OAuth separately, and treats a binding with no approved destinations as missing. If you granted credentials to third-party kits while on an older version, upgrading alone does not unwind what they may already have copied:
The cleanup checklist, for anyone who approved a third-party kit
- Review the approvals file — `~/.config/sbx/credentials.yaml` (or `%APPDATA%\sbx\credentials.yaml` on Windows) — and remove bindings granted to third-party kits; the file records approvals, not key values
- Read a kit's inject domains and its `permissions.network.allow` entries on every `sbx create`, not only the first
- Pin kits to a fixed commit, or keep a reviewed copy in a local folder, where the kit source allows it
- Store keys per sandbox with the `--sandbox` flag instead of globally
- Rotate the provider keys behind any approved third-party kit that later changed
Kennedy also asked Docker to tie approvals to a kit's content digest and to record every key injection in the policy log. The published notes confirm the destination enforcement and do not mention either.
If this is the week you evaluate agent stacks, note: the sign-up link is an affiliate one — the owner's Z.ai invite rides this door, and it prices the same for you.
Sources:
the radar reads hundreds of sources so you don't have to — the feed · the digest, nightly 21:00