
Developers using Docker Sandboxes for AI coding agents should check their installation after researchers disclosed a credential-handling flaw that could send API keys to an attacker-controlled server. Docker fixed the problem in Sandboxes version 0.55.0, released on 30 November, but teams relying on third-party agent kits should still review the approvals they have granted.
The vulnerability, CVE-2026-136998, is significant because the sandbox is designed to keep raw credentials away from the agent running inside it. A host-side proxy inserts the real key into requests for approved services. The flaw meant a later kit update could change the destination for that insertion without prompting the developer again.
In a technical account of the discovery, Endor Labs researcher Peyton Kennedy describes an attack that begins with a legitimate-looking third-party kit. The developer approves a request for a service such as Anthropic. The kit’s author then changes the domain in a later version. On another run, the old approval is treated as sufficient even though the credential is now being directed somewhere else.
Kennedy demonstrated the behaviour with a dummy key and local test server, not with a stolen production credential. The same vulnerable code path was used by 13 built-in services, including OpenAI, GitHub, Google, Mistral and xAI, although the researcher did not demonstrate separate attacks against every service. The finding does not establish that attackers exploited the flaw in the wild.
The risk is nevertheless concrete. A stolen model-provider key could incur usage charges, while a GitHub token could expose repositories or allow changes depending on its permissions. The researcher also warned that ordinary policy logs did not clearly show that the real credential had been injected into the request, making a review of suspicious kit changes more important.
What developers should do now
The first step is to update Docker Sandboxes to version 0.55.0 or later. Docker’s release notes describe the change to credential bindings, which now checks approved destinations for API keys and OAuth credentials. Users should then inspect third-party kits they have approved, especially any whose configuration or source changed after the initial approval.
If a kit unexpectedly added a destination or there is evidence that a credential may have been sent to an unfamiliar host, rotate the affected key and review provider usage and access logs. Teams can reduce the potential damage by giving agents scoped, short-lived credentials rather than broad account keys where the service permits it.
The affected behaviour was introduced in Sandboxes 0.43.0, according to Endor Labs. The lesson extends beyond this one product. An approval for an AI agent’s access is meaningful only if it remains tied to the destination and configuration the user actually reviewed. When a kit changes, yesterday’s consent should not silently become permission to send a credential somewhere new.