AI Security

Docker: 13 AI Agent Integrations Exposed to API Key Theft via Sandbox Approval Flaw

A consent-binding flaw (CVE-2026-136998) in Docker Sandboxes let a malicious third-party AI agent kit update redirect developers' real API keys to attacker-controlled servers after a single approval. Docker fixed it in v0.55.0; users who approved kits while vulnerable are advised to rotate keys.

Y
Yso Series
December 1, 2026 · 4 min read · 0
Endor LabsDocker SandboxesKennedy

A flaw in Docker Sandboxes, tracked as CVE-2026-136998, let a malicious update to a third-party AI agent kit redirect developers' real API keys to an attacker-controlled server after a single one-time approval, according to research published by Endor Labs on November 30, 2026 and reported by The Hacker News on December 1, 2026. Docker fixed the flaw in v0.55.0, released November 30, 2026. No attacks using the vulnerability have been reported so far.

What was the specific vulnerability?

The vulnerability was a broken consent binding in Docker Sandboxes: the domains a developer approved for a kit were recorded but never checked, so the proxy sent the real API key to whatever domains the kit's current version declared. Docker Sandboxes, comprising the sbx CLI and the sandboxd daemon, runs AI coding agents inside isolated microVMs. Its core design promise is that raw API keys never enter the sandbox: a host-side proxy swaps a placeholder header for the real key on the way out.

Endor Labs researcher Peyton Kennedy found that the consent system introduced in v0.43.0, released September 15, 2026, wrote an approval binding recording the service and its approved domains, but "the binding's domains list is written and never read." At request time, the check was only a boolean keyed on the service name. "The domains the operator approved play no part in that decision," Kennedy wrote in his technical analysis on Endor Labs.

In his test, a kit approved with api.anthropic.com as its only destination was replaced at the same reference with a version pointing to his test server. The next sandbox creation showed no prompt, and the proxy delivered the dummy key in cleartext. The approval survived sandbox deletion and was not keyed by kit name, content digest, or source. "a prompt is only as strong as what its answer is bound to. If the approval is not tied to the artifact that was inspected, the next update inherits it," Kennedy wrote.

How was the incident detected?

The flaw was found by Peyton Kennedy, a security researcher at Endor Labs, who reported it to Docker on September 21, 2026 alongside a second Sandboxes vulnerability. Kennedy demonstrated the attack with a dummy key and a test server on his own machine; no real-world exploitation has been reported. The disclosure went public on November 30, 2026 through the Endor Labs blog, and the vendor CVE record was published December 1, 2026.

The report was Kennedy's second Docker Sandboxes finding within a month. The earlier one, CVE-2026-103916, was a file-copy flaw that let an agent reach host files outside approved folders; it was fixed on November 3, 2026. Both flaws were reported to the vendor on the same day, September 21, 2026, meaning the approval-binding flaw took just over two months from report to public disclosure and patch.

What is the current impact?

The current impact is limited to developers who ran Docker Sandboxes versions 0.43.0 through before 0.55.0 on macOS, Windows or Linux and approved a third-party kit during that window. All thirteen built-in integrations share the key-injection path: anthropic, copilot, cursor, devin, droid, github, google, groq, mistral, nebius, openai, openrouter, and xai. Kennedy tested anthropic with a dummy value; the other twelve follow the shared code path and were not demonstrated separately, according to Endor Labs.

The attacker needed no access to the developer's machine, only one approval and one changed line in the kit's next version. Nothing warned the developer afterward: the policy log recorded the connection as allowed and said nothing about a key being injected. A malicious kit version could also add its own server to the sandbox's network allowlist without a prompt. Because secrets stored with sbx secret set are global by default, a redirected key is the one every sandbox on the machine uses, and a stolen GitHub token typically grants write access to the victim's repositories.

The severity scoring of the flaw differs between the researcher and the vendor. Kennedy initially scored the vulnerability 9.3 Critical under CVSS 3.1, then corrected it to 8.2 High after adjusting the attack vector to local. Under CVSS 4.0, he scored it 6.9 Medium, while Docker's own CVSS 4.0 score for the issue is 5.6 Medium, per the findings published by Endor Labs. The gap reflects the same underlying question the flaw itself raises: how much weight to give an attack that requires one legitimate-looking approval before it succeeds.

What are the next steps?

The next steps are to upgrade to v0.55.0 and rotate any provider keys used behind an approved third-party kit that later changed. Docker's release notes for v0.55.0, cited by The Hacker News, say kit credential injection now enforces approved destinations for API keys and OAuth separately, and treats a binding with no approved destinations as missing.

For users on older versions, the recommended remediation is to review and remove third-party-kit bindings in ~/.config/sbx/credentials.yaml, or %APPDATA%\sbx\credentials.yaml on Windows; read a kit's inject domains and permissions.network.allow entries on every sbx create; pin kits to a fixed commit; store keys per sandbox with the --sandbox flag; and rotate provider keys behind any approved third-party kit that later changed. Users who approved third-party kits while running a vulnerable version are advised to rotate their keys even if they see no signs of compromise, since the policy log gave no indication that a key had been redirected.

By the numbers

Source snapshot

Source snapshot
Source snapshot
Share this article