The Docker Sandboxes tool has been found to contain a security vulnerability, tracked as CVE-2026-136998, that allows attackers to steal developers' API keys through malicious updates to third-party agent kits. The flaw was discovered by Endor Labs researcher Peyton Kennedy. It stems from how Docker Sandboxes reuses credential authorization and from the absence of a critical check: once a developer approves a kit, the system records only the domains permitted to receive keys; subsequent runs merely verify whether the corresponding AI service has been approved and no longer validate the destination domain; if a kit update redirects the destination address to an attacker-controlled server, the proxy will silently transmit the keys, and the policy logs will contain no record of the key injection. The vulnerability affects 13 built-in services that share the flawed code, including Anthropic and OpenAI; the problematic code was introduced starting in version 0.43.0. Stolen keys may lead to fraudulent account charges and, if GitHub token permissions permit, may also allow access to code repositories. Docker has fixed the issue in version 0.55.0; the new version requires kits to comply with separately approved destination addresses when injecting credentials, and unapproved destinations are treated as missing.
