Skip to content
The Injection_
LIVE
LIVElast sweep next in--:--:--

[ RSS ][ JSON ][ llms.txt ]

Docker Sandboxes: an approved agent kit could redirect a real API key

Docker Sandboxes injected real API keys into whatever host the current agent kit named, ignoring the domains the developer approved.

· Endor Labs · Research by Peyton Kennedy

CVE-2026-136998
Endor Labs header illustration for its Docker Sandboxes credential flaw write-up
HIGHVulnerability

CVE-2026-136998 let a third-party agent kit in Docker Sandboxes send a developer's real API key to an attacker's host. Endor Labs found the credential proxy checks the service name but never the approved domains. Fixed in version 0.55.0.

01What happened

Endor Labs researcher Peyton Kennedy disclosed CVE-2026-136998, a credential binding flaw in Docker Sandboxes, on 30 November 2026. Docker shipped the fix in version 0.55.0 the same day and names the CVE in its release notes. Kennedy had reported the issue to Docker on 21 September 2026.

02How it works

Docker Sandboxes is built so raw API keys never enter the microVM where an agent runs: a host-side proxy swaps a placeholder header for the real key when a request goes to an approved destination. Approving a kit writes a binding with a domains list to the sbx credentials file, but the proxy never reads that list. At request time it checks only whether a binding exists for the service name, then injects the key into whatever domains the current kit declares. An attacker publishes one kit, waits for the approval, then republishes at the same reference with the inject domain changed to a host they control.

03Who is affected

Machines running Docker Sandboxes 0.43.0 through 0.54.x are affected once a developer has approved credentials for a third-party agent kit. Kennedy writes that all thirteen built-in services share the same injection path, including anthropic, openai and github, and that only the anthropic binding was tested, with a dummy key. Releases before 0.43.0 predate the consent gate and do not carry this defect.

04What to do

Upgrade Docker Sandboxes to 0.55.0 or later, then review the sbx credentials file and remove bindings granted to third-party kits. Rotate any provider key or GitHub token behind a kit that changed version after you approved it, and scope secrets to one sandbox with the sandbox flag instead of the global default.

Questions people ask

Which Docker Sandboxes versions are affected by CVE-2026-136998?
Docker Sandboxes from 0.43.0 up to but not including 0.55.0 carry CVE-2026-136998. Endor Labs confirmed the flaw on 0.43.0 on macOS 15.6 arm64. Releases before 0.43.0 predate the credential consent gate and do not have this defect, although Endor Labs did not assess other credential exposure in them. Version 0.55.0 fixes it.
Do I need to rotate API keys after the Docker Sandboxes flaw?
Rotation is advised for any provider key or GitHub token sitting behind a third-party agent kit you approved that later changed version. Endor Labs notes that Docker Sandboxes stores secrets globally by default, so a redirected key is the same one every sandbox on that machine uses. Keys only ever bound to first-party kits carry lower risk.
Did the Docker Sandboxes flaw leak keys into the agent's sandbox?
No. Endor Labs states that Docker's core design claim holds, because raw keys never entered the microVM where the agent runs, and the host-side proxy still substituted the key outside it. The defect was the destination: the kit decided which host received the real key, so a key left the machine rather than leaking inward.
How would I notice the Docker Sandboxes credential redirect?
Detection was hard before 0.55.0. Endor Labs reports that the swapped kit version produced no approval prompt, and that the sbx policy log recorded the outbound connection as allowed without noting that a credential had been injected. Kennedy asked Docker to log credential injection, and advises inspecting each kit's inject domains and network allow entries before every run.

Sources 3 links, all fetched

  1. 1endorlabs.comEndor Labs Write-Up
  2. 2docs.docker.comDocker Release Notes
  3. 3docs.docker.comSandboxes Credentials