A Docker Sandboxes flaw let an approved third-party AI agent kit silently redirect developers' real Anthropic, OpenAI or GitHub keys to an attacker after a later update.
The Hacker News reports that Endor Labs researcher Peyton Kennedy found a flaw (CVE-2026-136998) in Docker Sandboxes, the tool that runs AI coding agents in isolated VMs and is meant to keep API keys out of their reach. Once a developer approved a third-party agent kit, the list of allowed destinations was never re-checked, so a later kit update could have the credential proxy inject the real key into requests to an attacker-controlled server without any new prompt.
Every version before 0.55.0 on macOS, Windows and Linux is affected, and Docker has fixed the issue in 0.55.0. Because secrets are global by default, one redirected key could be used across every sandbox on the machine. The researcher demonstrated it with a dummy key, and no attacks using it have been reported.
Why it matters: Sandboxing an AI agent does not protect its credentials if the plugins and kits around it can change after approval. Teams should update Docker Sandboxes, pin or review third-party agent kits, scope keys per sandbox, and rotate any provider keys exposed to kits that changed after approval.