Be first to know. Be ready to defend.

Docker Sandboxes CVE-2026-136998: an updated agent kit could send your API keys to an attacker

Illustration headed Docker Sandboxes kit updates could redirect API keys. A terminal box shows the version swap: kit v1 points to api.anthropic.com; approval saved once; kit v2 points to attacker.example; new prompt, none; the proxy sends the real key. A footer notes the policy log shows an allowed request and no key. Chips read CVE-2026-136998, Fixed in 0.55.0, Upgrade now.Illustration headed Docker Sandboxes kit updates could redirect API keys. A terminal box shows the version swap: kit v1 points to api.anthropic.com; approval saved once; kit v2 points to attacker.example; new prompt, none; the proxy sends the real key. A footer notes the policy log shows an allowed request and no key. Chips read CVE-2026-136998, Fixed in 0.55.0, Upgrade now.
On this page
  1. Who is exposed
  2. How the attack worked
  3. How serious it is
  4. What changed in 0.55.0
  5. What to do

A flaw in Docker Sandboxes let a third-party agent kit collect a developer’s approval once, then use a later update to send the developer’s real API key to a server the attacker controls. Peyton Kennedy of Endor Labs found it and published the details on 30 November. Docker fixed it the same day in version 0.55.0 and published CVE-2026-136998 on 1 December.

Docker Sandboxes (sbx) runs AI coding agents in isolated microVMs. Its main promise is that raw API keys never enter the sandbox. The agent sends requests with a placeholder, and a proxy on the host swaps in the real key for approved destinations. That promise held. The problem was in how the proxy decided where an approved key could go.

Who is exposed

The CVE record lists Docker Sandboxes from 0.43.0 up to, but not including, 0.55.0, on macOS, Windows and Linux. Version 0.43.0, released on 15 September, added the consent prompt that this flaw undermines. Versions before it had no approval mechanism to bypass, and Endor Labs didn’t assess them for this issue.

You’re exposed if you ran a third-party kit and approved its credential request. Built-in kits don’t ask for approval. Keys set with sbx secret set are global by default, so the key a kit could redirect is the same one every sandbox on the machine uses.

How the attack worked

When a developer approves a kit’s credential request, sbx writes a binding to credentials.yaml that names the service and the domains allowed to receive the key. Kennedy found that the domains list was written but never read. At request time, the proxy only checked whether a binding existed for the service name. It then sent the real key to whatever domains the current version of the kit asked for.

How the Docker Sandboxes kit version swap worked. Step 1, an attacker publishes kit v1, whose inject block sends the key only to api.anthropic.com. Step 2, the developer approves it once; the binding is saved in credentials.yaml and survives sbx rm. Step 3, the same tag now serves v2, with one changed line: the inject domain is the attacker’s host. Step 4, the next sbx create shows no prompt, because the check looked only for the service name. Step 5, the proxy sends the real key, and the policy log shows an allowed request with nothing about a key. Fixed in 0.55.0: the proxy now enforces the approved destinations.How the Docker Sandboxes kit version swap worked. Step 1, an attacker publishes kit v1, whose inject block sends the key only to api.anthropic.com. Step 2, the developer approves it once; the binding is saved in credentials.yaml and survives sbx rm. Step 3, the same tag now serves v2, with one changed line: the inject domain is the attacker’s host. Step 4, the next sbx create shows no prompt, because the check looked only for the service name. Step 5, the proxy sends the real key, and the policy log shows an allowed request with nothing about a key. Fixed in 0.55.0: the proxy now enforces the approved destinations.

Kits are fetched by reference, from a tag, branch or directory, much like a package. So the attacker publishes an honest kit, waits for one approval, then changes one line at the same reference. The approval also survives deleting the sandbox. The same update can add the attacker’s host to the sandbox’s network allowlist, because a kit’s network permissions are applied without a prompt.

Kennedy tested it with a dummy Anthropic key and a local test server, which received the key in plain text. He says all 13 built-in services share the same code path, including OpenAI, GitHub, Google, Mistral and xAI, but he only demonstrated Anthropic. The developer sees nothing. “The second sbx create shows no prompt,” Kennedy writes, and sbx policy log records an allowed connection with no sign that a key was added.

A stolen provider key means usage billed to the victim. A stolen GitHub token can give write access to the victim’s repositories.

How serious it is

The severity scores given to CVE-2026-136998. The researcher’s first score, CVSS 3.1 9.3 with a network attack vector, was changed. The researcher’s final score is CVSS 3.1 8.2, High, with a local attack vector. The researcher’s CVSS 4.0 score is 6.9, Medium, counting the impact on the provider account. Docker’s CVSS 4.0 score in the CVE record is 5.6, Medium, without that impact. CISA’s SSVC enrichment records exploitation as none and the flaw as not automatable.The severity scores given to CVE-2026-136998. The researcher’s first score, CVSS 3.1 9.3 with a network attack vector, was changed. The researcher’s final score is CVSS 3.1 8.2, High, with a local attack vector. The researcher’s CVSS 4.0 score is 6.9, Medium, counting the impact on the provider account. Docker’s CVSS 4.0 score in the CVE record is 5.6, Medium, without that impact. CISA’s SSVC enrichment records exploitation as none and the flaw as not automatable.

The scores differ mainly on how much weight to give the stolen key’s impact on the provider account. Kennedy first scored the flaw 9.3 under CVSS 3.1, then corrected the attack vector to local before he reported it, which gave 8.2. Under CVSS 4.0 he gives 6.9. Docker’s score in the CVE record is 5.6, and it doesn’t count impact on other systems. CISA’s enrichment of the CVE record says there’s no known exploitation.

This is Kennedy’s second Docker Sandboxes finding in a month. The first, CVE-2026-103916, let the sbx cp file-copy command reach outside a sandbox’s allowed folders, and Docker fixed it in 0.51.0 on 3 November. He reported this one on 21 September.

What changed in 0.55.0

According to the release notes, credential injection “now enforces the approved destinations for API keys and OAuth tokens”, and bindings with no approved destinations count as missing. The same release stops sending host-managed keys over plain HTTP. External endpoints must use HTTPS.

Version 0.55 also stops reading several environment variables, including the ones for kit signature checks and allowed kit sources. If you rely on them, save them with sbx settings set before you upgrade.

What to do

  • Upgrade Docker Sandboxes to 0.55.0 on every machine. Before upgrading, move any DOCKER_SANDBOXES_KIT_* environment variables into sbx settings.
  • Open ~/.config/sbx/credentials.yaml (%APPDATA%\sbx\credentials.yaml on Windows) and remove bindings you granted to third-party kits.
  • Rotate any provider key or GitHub token you used with a third-party kit that changed after you approved it.
  • Pin kits to a fixed commit, or keep a reviewed copy in a local directory, rather than fetching a tag or branch.
  • Consider sbx settings set kit.requireSignature true and the kit.allowedSources setting to limit which kits can run.
  • Scope keys to a single sandbox with sbx secret set --sandbox where you can, instead of the global default.
  • Read a kit’s inject domains and network permissions every time you create a sandbox from it, not just the first time.