Docker has patched CVE-2026-136998, a flaw in Docker Sandboxes that let a third-party agent kit, once approved, later be updated to send a developer’s real Anthropic, OpenAI or GitHub key to an attacker-controlled server without any new prompt. Endor Labs researcher Peyton Kennedy found the bug, and no attacks using it have been reported.
How an Approved Agent Kit Could Redirect Developer API Keys
Docker Sandboxes runs AI coding agents in isolated environments. When a third-party kit asks for a credential, the developer approves the request once. The flaw meant that a later, malicious version of the same kit could send the real key to a server the attacker controlled, and the developer would see no further consent dialog.
Kennedy tested the attack path with Anthropic and a dummy key. The key-injection path is shared by thirteen built-in integrations, including Anthropic, OpenAI, GitHub and Google, so the same weakness applies across all of them.
The Missing Domain Check Behind CVE-2026-136998
The cause traces to version 0.43.0, which introduced the consent system on September 15. Approving a kit’s credential request records the service and the approved domains. The sandbox proxy, however, only checked whether a binding existed for the service name. It never compared the destination against the approved domain list.
A malicious kit version could also add its own server to the sandbox network allowlist without triggering a prompt. The approval survives deletion of the sandbox, and the policy log shows nothing about a key being injected, which leaves defenders with little evidence after the fact.
Why One Redirected Key Affects Every Sandbox on a Machine
Secrets in Docker Sandboxes are global by default. A single redirected key therefore affects every sandbox on the developer’s machine, not only the one that ran the malicious kit. Stolen keys could give an attacker access to model provider accounts, and GitHub tokens could carry write access to repositories depending on their scopes.
Severity Scores Differ Between the Researcher and Docker
Kennedy initially scored the issue 9.3 Critical, then corrected the attack vector from network to local, which lowered the CVSS 3.1 rating to 8.2 High. Under CVSS 4.0, the researcher rates it 6.9 and the vendor rates it 5.6. The spread reflects a judgment call about how much the local attack vector and the need for a prior one-time approval limit exploitation.
Even at the lower scores, the practical risk comes from trust. A kit that behaves normally when first approved can change behavior in a later update, and the consent model the developer relied on does not re-check the destination.
Docker’s Fix and What Developers Should Do
Docker released the fix in Docker Sandboxes 0.55.0 on November 30, and the CVE record and research went public on December 1. The affected range is every version before 0.55.0 on macOS, Windows and Linux. Developers should update to 0.55.0 or later.
Developers who approved a third-party kit that was later updated should rotate the keys that kit could reach, since the policy log would not show whether a key was sent out. No attacks using the flaw have been reported so far.
What the Docker Sandboxes Bug Shows About Agent Kit Trust
The flaw sits in a gap that grows as developers hand credentials to AI agent tooling: approval granted at install time can outlive the code it was granted to. Docker’s design recorded the approved domains correctly, and the failure came when the proxy skipped the comparison. Researchers at Endor Labs found the mismatch by testing what a kit could do after approval, a test that vendors of similar sandboxes may now run on their own consent systems.
