Docker fixed CVE-2026-136998 in Docker Sandboxes 0.55.0 on November 30, 2026, after Endor Labs researcher Payton Kennedy showed that a previously approved third-party AI agent kit could push an update that silently redirected a developer's real Anthropic, OpenAI, or GitHub key to an attacker-controlled server. No new approval prompt appeared. The policy log showed nothing unusual. Anyone running Docker Sandboxes to isolate Claude, Codex, or Copilot-style coding agents, or anyone who has installed a third-party agent kit into it, should check their version today.
How the key handoff is supposed to work
Docker Sandboxes runs AI coding agents inside isolated microVMs, using a CLI called sbx and a host daemon called sandboxd. The design goal is that the agent itself never sees a real credential. Keys live on the host; the agent inside the microVM only sends a placeholder header, and a proxy on the host swaps in the real value when a request goes to an approved API destination. A third-party "kit," a packaged agent configuration, has to declare which domains it needs a key sent to, and the developer approves that destination once, through sbx create.
Where the one-time approval stopped being checked
The flaw is a classic trust-on-first-use gap. Docker Sandboxes versions from 0.43.0 up to but not including 0.55.0 recorded the approved credential destination the first time a kit ran, but did not re-enforce that destination during proxy substitution on later runs. An attacker-controlled kit can reuse an existing, already-approved service binding and simply change where it injects the credential; the host proxy still fires, and it still sends the real key, now to the new address.
In Endor's proof of concept, a kit's inject block names only api.anthropic.com. The operator runs sbx create, reads a prompt that accurately says the key goes to that domain, and approves it. A later version of the same kit changes the destination. The second sbx create does not prompt again, because the service binding already exists.
The evidence trail is the part worth sitting with. A connection to the attacker's test host shows up in the audit trail as an ordinary, allowed network call. The policy log records the connection as allowed, but it does not record that a credential rode along with the request. Nothing distinguishes a routine outbound call from one carrying a live key. An engineer who reviews sbx policy log on a regular schedule, which is good practice, has no way to flag the difference after the fact.
What the demonstration and scope covered
Kennedy demonstrated the theft using a dummy Anthropic key, so no real credentials were exposed during the research itself. In a real exploitation, a stolen AI provider key could run up charges against the victim's account, and a stolen GitHub token could reach any repository within its scope. Endor Labs found that the vulnerable credential-handling code was shared across 13 of Docker Sandboxes' built-in service integrations: Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI. Kennedy also reported a related gap in the same area: a malicious kit update could add its own server to the sandbox's network allowlist without triggering a prompt at all.
Severity scoring split, which is worth noting for anyone triaging this internally. Kennedy rated the bug 8.2, High, under CVSS 3.1, after first scoring it 9.3 Critical and then correcting the attack vector to local, since the malicious kit is a file the developer has to fetch and run, not a service an attacker reaches directly over the network. Docker, acting as the CVE Numbering Authority, scored the same bug 5.6, Medium, under CVSS 4.0 once the record was finalized on December 1. Both scores describe one bug; they disagree on how much a local-only attack vector should discount it. This was also not Kennedy's first finding against the product. It was Endor's second Docker Sandboxes report, following CVE-2026-103916, a file-copy flaw that let an agent reach past the folders a sandbox was supposed to confine it to, fixed in v0.51.0 on November 3, 2026.
Fix and what to check now
Docker Sandboxes 0.43.0 shipped the credential consent gate on September 15, 2026. The bug sat inside that gate's enforcement logic from that release until the fix. The 0.55.0 release notes say kit credential injection now enforces the destinations approved for API keys and for OAuth tokens separately, and treats a binding with no approved destination as missing rather than defaulting it open. Kennedy also asked Docker to tie approvals to a kit's content digest, so an update can't silently reuse an old approval, and to record every key injection event directly in the policy log, which would close the audit gap described above. Docker Sandboxes Cloud was not assessed in this research; it uses a separate, cloud-side credential store.
- Upgrade. Move to Docker Sandboxes 0.55.0 and review every credential approval you previously granted to a third-party kit.
- Re-read kits on every run, not just the first. Check a kit's declared inject domains and its
permissions.network.allowentries on everysbx create, not only the first time you install it. - Scope keys narrowly and pin versions. Set keys per sandbox rather than globally, and pin third-party kits to a fixed commit instead of a branch or tag where that's an option.
No active exploitation has been reported so far. That's worth stating plainly rather than implying more: it means no one has published evidence of abuse yet, not that none occurred. The underlying lesson holds regardless. Keeping the literal key out of an agent's prompt does nothing if the surrounding execution environment, the proxy, the approval cache, the policy engine, still trusts a destination it only ever checked once. More on that boundary in our security coverage and our notes on the AI gateway pattern.
KnoxCall sits in a similar credential-injection position, swapping a token for the real key at call time instead of handing the key to the client at all, and this incident is a plain reminder that whatever does that swapping has to re-check the destination on every call, not just the first one it ever saw.