What is the Docker Sandboxes CVE-2026-136998 API key leak?

CVE-2026-136998 is an authorization bug in Docker Sandboxes that let an updated third-party agent kit send your real AI API key to a server the kit's author controls. Docker fixed it in version 0.55.0, released on November 30, 2026 [1]. Endor Labs found the flaw and reported it to Docker on September 21, 2026 [2].

Docker Sandboxes runs AI coding agents inside a microVM. Its main promise is that raw keys never enter the sandbox: the agent sends a placeholder header, and a proxy on the host swaps in the real key for approved destinations [2]. The bug left that isolation intact. It saved where you agreed the key could go, then never checked it [2].

The figures below come from the Endor Labs write-up [2].

Item Value
CVE CVE-2026-136998
Weakness CWE-863, Incorrect Authorization
Severity CVSS 3.1: 8.2 High; CVSS 4.0: 6.9 Medium
Introduced 0.43.0
Fixed 0.55.0 (November 30, 2026)

How did an approved kit leak an API key?

A kit is a packaged agent configuration. Its inject block lists, per service, the domains where the proxy should put the real credential [2]. Since 0.43.0, sbx create asks you to approve each credential a third-party kit wants and shows the domains it will be sent to, then saves your answer as a binding in ~/.config/sbx/credentials.yaml [2].

The prompt told the truth. Trouble came afterward: Endor Labs found that the binding's domain list was written and never read, and that the check at request time only asked whether a row existed for the service name, such as anthropic [2]. Nor did the binding record which kit it was granted to, and in Endor Labs' words, "Approval obtained by one version of a kit transfers to every later version fetched from the same reference" [2].

That gave an attacker a five-step path, as Endor Labs describes it [2]:

  1. Publish kit v1, whose inject block names only api.anthropic.com.
  2. Wait for a developer to run sbx create against it and approve the accurate prompt.
  3. Ship kit v2 at the same tag, branch or directory, with the inject domain changed to a host the attacker controls.
  4. The developer's next sbx create finds the existing anthropic binding and shows no prompt, warning or diff.
  5. The proxy puts the real key into requests to the attacker's host.

BleepingComputer sums up the result: once an updated kit points the destination at an attacker's server, Docker's proxy sends the real key without asking the developer [3]. The same kit file can add the attacker's host to the sandbox's network allowlist, because its permissions.network.allow entries apply without a prompt [2].

Why would you not notice the leak?

Nothing in the product signals it. After the first approval, the second sbx create shows no prompt, and sbx policy log records the connection to the attacker's host as allowed without saying a credential was injected [2]. Someone reading the logs later sees an ordinary permitted request.

In the researcher's test, the key arrived in cleartext over plain HTTP, so the attacker needed no TLS interception, only an endpoint that accepts a request [2]. To the developer, the attack looks like a routine kit update.

Which API keys and versions are affected?

Versions 0.43.0 through 0.54.x are affected. Endor Labs lists 0.43.0, the release that added the credential consent gate, as the one that introduced the flaw, and 0.55.0 as the fix [2]. Releases before 0.43.0 had no binding mechanism to bypass, though Endor Labs says it did not assess their credential exposure separately [2].

The flaw affects 13 built-in services that share the same credential-handling code: Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter and xAI [3]. Only the Anthropic binding was tested, with a dummy key, and the other 12 follow the shared code path but were not demonstrated separately [2].

The key at risk is usually your main one. sbx secret set stores credentials globally by default, so a redirected key is the one every sandbox on the machine uses [2]. A stolen model-provider key gives metered API access billed to your account, while a GitHub token gives whatever its scopes allow, which for a typical developer token includes write access to your repositories [2].

How severe is CVE-2026-136998, and why are there two scores?

Endor Labs scored it 8.2 High under CVSS 3.1 and 6.9 Medium under CVSS 4.0 [2]. The attack vector is local, because the malicious kit is a file the developer fetches and runs, and user interaction is required, because the developer must approve the kit once and later run sbx create against it [2]. Before submission, the researcher corrected an initial 9.3 Critical score with a network vector to local [2]. The two numbers come from different CVSS versions, and Endor Labs says the 4.0 vector carries the same reasoning, with the provider-side integrity impact recorded as a subsequent-system metric [2].

Docker's release note states the main condition: exploitation required the user to have approved the service earlier and then launch the modified kit [1]. Endor Labs adds that an approval given to one third-party kit would carry over to any other third-party kit declaring the same service, though it demonstrated only the version swap [2].

What did Docker change in 0.55.0?

Per the release notes, "Credential injection now enforces the approved destinations for API keys and OAuth tokens." [1] Bindings with no approved destinations are now treated as missing [1].

In its report, Endor Labs had suggested three changes: enforce the binding's domains at substitution time, tie the approval to the kit's content digest instead of the service name, and log credential injection in sbx policy log [2]. Docker's note describes destination enforcement, which matches the first of those [1].

What should you do now?

Work through these in order:

  1. Upgrade to Docker Sandboxes 0.55.0, the version Docker and Endor Labs both name as the fix [1] [2].
  2. Open ~/.config/sbx/credentials.yaml and remove any binding you granted to a third-party kit, since each one is a standing approval for whatever that kit's reference serves next [2].
  3. Rotate the key if a kit you approved shows suspicious configuration or destination changes, as BleepingComputer advises [3].

Until every machine is on 0.55.0, Endor Labs also recommends these habits [2]:

  • Read a kit's inject domains and permissions.network.allow entries on every sbx create, not only the first.
  • Pin kits to a fixed commit instead of a tag or branch, or keep a reviewed copy in a local directory you control.
  • Set keys per sandbox with the --sandbox flag of sbx secret set, so a redirected binding reaches less.

What does this flaw say about AI coding sandboxes?

The isolation held: the microVM boundary never broke, and raw keys never entered the guest [2]. What failed was the thing the approval was attached to. Endor Labs argues that a consent prompt is only as strong as what its answer is bound to, and that if the approval is not tied to the artifact that was inspected, the next update inherits it [2].

This is the second Docker Sandboxes flaw Endor Labs has reported in a month, after CVE-2026-103916, which Docker fixed in 0.51.0 on November 3, 2026 [2]. If your team uses third-party kits, treat each kit reference like a package dependency: pin it to a commit and review every change before the next sbx create [2].

Share