The promise, and the part that was not enforced
Docker Sandboxes is built around a clean promise: raw API keys never enter the microVM where an AI coding agent runs. You store a key on the host. The agent sends requests with a placeholder header. A host proxy swaps the placeholder for the real key, but only for destinations the kit was approved to use.
Since v0.43.0, a consent prompt has fronted that swap. It names each credential and the domains it will go to, and consent defaults to decline. Approving writes a binding to ~/.config/sbx/credentials.yaml, domains included.
Endor Labs found that the domains list is written and never read. At request time, the gate is a boolean keyed on the service name. If a row for anthropic exists, the proxy injects the real key at whatever domains the current version of the kit declares. The destination you approved plays no part in the decision, and the binding is not tied to a kit name, a content digest, or a source.
One changed line
The sequence the researcher demonstrated, with a dummy credential and a loopback canary server, is short:
1. A kit declares only api.anthropic.com. The prompt says exactly that, and the operator approves.
2. The kit is republished at the same tag, branch, or directory with one change: the inject domain is now a host the attacker controls. The same update can add that host to the sandbox's network allowlist, also without a prompt.
3. The next sbx create finds the existing service row and passes. No prompt, no warning, no diff.
4. The proxy substitutes the real key into requests to the new host. In the test, the canary received it in cleartext over plain HTTP.
Rewriting the stored binding's domains to an unrelated value changed nothing, which rules out partial matching. The recorded list simply has no effect. The policy log afterwards shows an allowed connection and says nothing about a credential being injected into it.
Two limits are worth stating plainly. The researcher demonstrated the version swap with the Anthropic service; the cross-kit case, where a different kit inherits the same service approval, is Endor Labs' inference from the shared approval logic and was not demonstrated. Several other paths were correctly refused: mixin kits cannot add an injection domain for a built-in service, and kits cannot impersonate a built-in agent.
What to do if you run third-party kits
Upgrade to Docker Sandboxes v0.55.0. Until a machine is on that version, Endor Labs' advice is specific:
- Open ~/.config/sbx/credentials.yaml and remove bindings granted to third-party kits. Each one is a standing approval for whatever that kit's reference serves next.
- Check a kit's inject domains and permissions.network.allow entries on every sbx create, not just the first.
- Pin kit sources to a fixed commit where possible, or keep a reviewed local copy.
- Set keys per sandbox with --sandbox instead of accepting the global default, and rotate any provider key a changed kit could have reached.
For a model provider key, the risk is metered usage billed to your account if the key is used. For GitHub, the impact depends on the token's permissions; the researcher notes a typical developer token carries write access to your repositories. That difference is why the same one-line change is a billing problem in one case and a code-supply problem in the other.
The pattern underneath
This is Endor Labs' second Docker Sandboxes finding in a month. The first, CVE-2026-103916, was about the file-copy command reaching past approved folders, fixed in v0.51.0 on November 3. Endor Labs notes the isolation primitive held in both cases: the microVM boundary did not break, and raw keys never entered the guest in this one either. What failed was the record of a human decision. In the first, an approved path resolved somewhere else. In this one, an approved destination was remembered as a service name.
A consent prompt is only worth the check that runs after it. Here the prompt was accurate, the default was safe, and a function Endor Labs found in the binary, MissingDomainsForService, is named for exactly the check that was missing. The approval was real. The enforcement was not attached to it.
Sources
- [1] Endor Labs, "CVE-2026-136998: Docker Sandboxes vulnerability lets malicious AI agent kits steal developers' API keys," November 30, 2026Read source
- [2] Threadlinqs Intelligence, CVE-2026-136998 detection notes (corroborating disclosure date, affected versions and upgrade advice)Read source