Docker Sandboxes flaw let agent kits steal your AI and GitHub keys
CVE-2026-136998 let a previously approved third-party agent kit swap its credential destination and siphon off stored API keys. Docker fixed it in 0.55.0.
Docker Sandboxes, the isolated environments Docker ships for running AI coding agents, had a credential disclosure bug tracked as CVE-2026-136998. A third-party agent kit that a developer had already approved could ship an update changing where its credential injection pointed, and Docker’s host proxy would send the real key to that new, attacker-controlled destination without asking again.
The flaw was introduced in version 0.43.0 and sat there until the fix in 0.55.0, released 30 November. It touches credential handling for 13 built-in services, including Anthropic, OpenAI, GitHub, Copilot, Cursor and Google. Docker’s fix now enforces that credential injection only ever goes to the destinations a developer actually approved; a binding with no approved destination is treated as missing rather than trusted by default. Researcher Payton Kennedy at Endor Labs found it.
Why it matters: the whole pitch of Docker Sandboxes is that your API keys never enter the sandbox where the agent runs. This bug quietly broke that promise for anyone who had approved a third-party kit, since the approval didn’t pin the destination. If you’ve granted a third-party kit access to a credential, update to 0.55.0 or later and review what you approved. Rotate any key you’re not confident stayed put.