6 min read

You approved a version that no longer exists

You approved a version that no longer exists

The prompt tells you the kit wants your Anthropic key and that it will be sent to api.anthropic.com. You read it. The kit is open source, you skimmed its inject block last week, the domain is the real one. You press allow. For a second you feel like the guy from the r/ProgrammerHumor post that did numbers this week, the one who looks at a wall of model options and just picks Auto. Decision made. Back to work.

Three weeks later the kit's author pushes an update. Your next sbx create doesn't ask anything. Your Anthropic key goes to a host you have never seen. The sandbox held perfectly the whole time.

That is CVE-2026-136998, published November 30 by Peyton Kennedy at Endor Labs, CVSS 3.1 8.2. Docker fixed it the same day in Sandboxes v0.55.0. If you run Docker Sandboxes and approved a third-party kit any time since September, stop reading and go look at ~/.config/sbx/credentials.yaml. Then come back, because the shape of this bug is going to show up in a dozen other agent tools.

The design was good

Your agent runs inside a microVM. Your provider keys never go in. sbx secret set keeps them on the host. Inside the VM the agent sends requests with a placeholder header, x-api-key: ***. A proxy on the host sees a request headed for an approved destination, swaps the placeholder for the real key, and forwards it. The VM never holds the key. That is a sane way to let an LLM call an API.

A kit, the thing that turns an empty sandbox into "a Claude Code sandbox" or "a Cursor sandbox", declares which services it uses and, per service, which domains the proxy should inject into. Kits get fetched by reference: a tag, a branch, a directory.

Version 0.43.0 in September added a consent gate. Before a third-party kit can use your stored key, sbx create shows you the credential and the domains, and defaults to decline. Approve it and Sandboxes writes a binding row with a domains: list. On paper this is the control I want as a pentester. The untrusted side asks, the human decides, the host enforces.

Written, never read

The binding's domains list is written and never read. That's the whole bug.

At injection time the gate asks one question: does a binding exist for the service named anthropic? If yes, the proxy injects the real key into whatever destination the current kit's inject block points at. The gate ignores the domains you approved and uses the ones the kit in front of you right now declares. The row is keyed on the service name alone. It doesn't record which kit asked, or what that kit contained. A yes for the name.

Kennedy's last check is the one I'd have run too. He rewrote the binding's domains to [example.invalid]. The leak was identical. The binary even ships a function called sandboxlib/bindingconsent.MissingDomainsForService, which describes the missing check and, as far as the report can tell, gates nothing at runtime. The code knew. It didn't ask.

I've started calling this pattern write-only consent, because it's the same shape as a cache lookup that ignores half the row. Picture a hotel desk with a wall of room keys behind it. The clerk's rule is "hand a key to anyone holding a binding." The binding says Suite 300. Nobody reads the Suite 300 part. The guest decides which door.

The attack, end to end

Nothing exotic. The attacker compromises nothing, which is Kennedy's line and the part that should bother you.

  1. Publish a kit that names api.anthropic.com. Make it useful so people approve it.
  2. Wait for an approval. The binding lands in credentials.yaml.
  3. Push a new version at the same tag, branch, or directory. Change one line: the inject domain is now a host you control. Add permissions.network.allow for egress while you're there; that part never prompted in the first place.
  4. Next sbx create finds the row for anthropic, passes, and the proxy puts the real key into a request to the attacker's host. No prompt, because the row exists.
  5. Open the log to see what happened. sbx policy log shows the connection was allowed. It says nothing about a credential being injected. The operator sees an ordinary permitted request.

In Kennedy's reproduction the key arrived in cleartext over plain HTTP to a loopback canary. v0.55.0 now requires HTTPS for endpoints that receive host-managed keys, which closes the cleartext part, not the authorization part.

Thirteen built-in services share this path: Anthropic, OpenAI, GitHub, Google, Groq, Mistral, Nebius, OpenRouter, xAI, Copilot, Cursor, Devin, Droid. He tested Anthropic with a dummy value. The GitHub one is the one that changes the stakes, because that token's scopes can include write access to your repos. And since sbx secret set stores globally by default, the key that got redirected is the one every sandbox on the machine uses.

What held, and what didn't

Credit where due. The defaults are decline. Non-interactive runs decline; there is no --yes to paper over it. A mixin kit can't add an injection domain for a built-in service, can't impersonate a built-in agent by name, and sbx kit add refuses kits that declare credentials. The isolation primitive held. The prompt itself is fine. In the report's words, the defect is that what the prompt promises is never enforced afterward.

That sentence is the whole lesson, and it generalizes past Docker. An approval has two halves, capture and enforcement. Capture is the UI, the prompt, the TTY, the big "allow". Everyone builds that, and it looks great in a demo. Enforcement is the boring part that runs later, in a different process, against data the untrusted side controls. Nobody demos it, and this is what happens when it's missing.

The trust boundary was drawn around the right asset. The key sat on the host the entire time. But the proxy's decision input, "where is this request going", came from the kit. The party you were defending against got to write the one field that mattered. The key does not need to enter the VM if the VM's kit decides where the host sends it.

It's Kennedy's second Docker Sandboxes finding. The first, CVE-2026-103916, was a file-copy command that reached past the folders a sandbox was allowed to touch. His framing ties them together better than I can: with the file copy, the operator approved a path and the path resolved somewhere else. Here, the operator approved a destination and the product remembered only the service name.

What to do now

  1. Upgrade to v0.55.0. Injection now enforces the destinations you approved, for API keys and OAuth tokens, and a binding with no destinations is treated as missing.
  2. Open ~/.config/sbx/credentials.yaml. Delete every binding you don't specifically remember granting, then re-approve the kits you still use and read the prompt this time.
  3. Treat a kit update as a new kit. Read the inject domains and the network.allow list on every create, not only the first. Pin to a commit if the kit lets you.
  4. Scope secrets per sandbox with sbx secret set --sandbox instead of the global default, so one redirected key isn't every sandbox's key.
  5. If a kit you approved has changed since you approved it, rotate the key. No in-the-wild exploitation has been reported as of December 1. That is a reason to be calm, not a reason to skip this step.

One open question for Docker. The release notes describe enforcing approved destinations. They don't mention binding approvals to a digest, which is Kennedy's second recommendation. Enforcing destinations means a kit that keeps api.anthropic.com and changes something else still inherits your approval. Sandboxes has kit.requireSignature; signatures are optional unless you turn them on. Read the notes and decide for your own threat model.

The Auto guy is funny because he's rational. Nobody can keep up with the model picker, so Auto is the correct answer for a model picker. It's the wrong answer for a credential gate, and CVE-2026-136998 is what it looks like when the product picks Auto on your behalf on run two. Open the YAML, delete the rows you don't remember, then upgrade.

Sources