A flaw in Docker Sandboxes could let a malicious update to a third-party AI agent kit steal a developer's real API keys, according to research disclosed on November 30. Docker fixed the issue the same day in version 0.55.0, and developers running older versions should update and review the credential approvals they have already granted.
Docker Sandboxes runs AI coding agents inside isolated virtual machines, with a design meant to keep raw secrets out of the agent's reach. Keys live on the host machine, and a proxy swaps a substitute value for the real key only when a request goes to an approved destination. The flaw broke that promise: after a single approval from the developer, a later update to the same kit could send the real Anthropic, OpenAI or GitHub key to a server controlled by an attacker, with no new prompt and nothing in the logs to show that a credential had been sent.
The vulnerability is tracked as CVE-2026-136998. Endor Labs researcher Peyton Kennedy found it and demonstrated it with a sample key and a test server on his own machine. No attacks using the flaw have been reported, according to coverage of the disclosure.
How an approval was saved, then ignored
The problem began with the consent system added in Docker Sandboxes version 0.43.0, released on September 15. From that version onward, a third-party kit that wanted credentials had to ask the developer first. When the developer agreed, Docker Sandboxes wrote a binding to a file on the machine, recording the service name and the domains the developer had approved.
That recorded list of domains was never read back, the researcher found. At request time, the check only asked whether a binding existed for the service name. The proxy then sent the real key to whatever domains the current version of the kit named. An attacker could therefore publish a harmless kit, collect an honest approval, and then push a second version under the same tag or branch that pointed at a different host.
The next sandbox creation showed no prompt and no warning. The kit could also open network access to the new host on its own. The policy log recorded the connection as allowed and said nothing about a credential being injected into it, so an operator reviewing logs afterwards would see an ordinary permitted request. As Kennedy put it, a prompt is only as strong as what its answer is bound to.
What a stolen key unlocks
The flaw affects every version from 0.43.0 up to 0.55.0, on macOS, Windows and Linux, according to the official CVE record published by the vendor. Thirteen built-in integrations share the same key-injection path, including Anthropic, OpenAI, GitHub, Google, Copilot, Cursor, Devin, Groq, Mistral, OpenRouter and xAI. The researcher tested one of them, Anthropic, with a sample value.
The damage follows the key. Secrets stored with the sandbox tool's secret command are global by default, so a redirected key is the one every sandbox on the machine uses. A stolen model-provider key could run up metered API usage billed to the victim. A stolen GitHub token could carry write access to repositories, depending on its scope.
Endor Labs rates the flaw 8.2, High, under the CVSS 3.1 scoring system, after first scoring it 9.3, Critical, and then correcting the attack vector to local. The malicious kit is a file the developer fetches, not a service an attacker can reach over the network. Docker, which issued the CVE, puts it at 5.6, Medium, under CVSS 4.0 in the official record. Both views fit the same facts: the attack needs a kit the developer already trusts and a second launch by that developer, which rules out mass scanning, but the payoff is a real, reusable credential rather than a session that expires.
The research covered the local product only. Cloud sandboxes keep a separate secret store, and it has not been established whether they ever shared the affected authorization logic.
The fix in version 0.55.0
Upgrading to Docker Sandboxes 0.55.0 removes the flaw. The version's release notes say kit credential injection now enforces the destinations approved for API keys and for OAuth separately, and treats a binding with no approved destinations as missing. The researcher reported the finding to Docker on September 21, and the fix shipped a little over two months later.
Developers who run Docker Sandboxes should check their version first. Anything from 0.43.0 up to 0.55.0 is affected. The researcher also recommends a short set of steps for machines that may have granted credentials to third-party kits while vulnerable: review the approvals file on the machine and remove any binding granted to a third-party kit, scope keys per sandbox instead of storing them globally, and rotate any key a changed kit could have reached.
One detail in the upgrade deserves attention. The 0.55.0 release notes say the command-line tool stops reading several environment variables, among them the ones that controlled kit signature requirements and allowed kit sources. Developers who relied on those variables should check the release notes before updating.
Why this matters for agent tooling
The flaw lands in a week when agent security is already under the microscope. Fake coding-agent skills have been used to hide credential stealers, and vendors have been racing to add guardrails around what agents can touch. Docker Sandboxes is part of that same trust story: it exists to let developers run powerful agents without handing them the keys to everything.
This is also the researcher's second flaw in the product within a month, with both reported to the vendor on the same day in September. That pattern points to a young surface area rather than a single slip. Consent prompts, approval files and proxy injection are exactly the kind of plumbing that agent tooling depends on, and they only work when the answer a user gives is bound to the thing they actually approved: the kit, its version and its destinations.
For teams running coding agents at scale, the episode is a reminder to treat agent kits like any other third-party dependency. Pin versions, review updates from sources outside the vendor, and keep the most powerful credentials scoped as narrowly as the work allows. The sandbox did its job of keeping keys out of the virtual machine. The gap was in the gate that decided where those keys were allowed to go.
Sources
Reporting on the disclosure from Bleeping Computer and Cyber Security News, with additional detail from Dev.to and the December 1 daily AI news roundup. Related coverage on genznewz: TrojanPony: Fake Claude Code Skills Hide a Password Stealer and Akamai Agent Security Puts Enterprise AI Agents Under Watch.
Comments 0
No comments yet. Be the first to share your thoughts!
Leave a comment
Share your thoughts. Your email will not be published.