⌁AI·CYBER·BRIEF▌
VulnerabilitiesEdited by Liviu Marica6 min read

Docker Sandboxes could send your AI API keys to a kit's new server without asking — update to 0.55.0

CVE-2026-136998: a third-party agent kit you once approved could later redirect your stored Anthropic or OpenAI key to its own server. Fixed in Docker Sandboxes 0.55.0.

Docker Sandboxes, the tool that runs AI coding agents such as Claude Code or Codex inside small isolated virtual machines, had a flaw (CVE-2026-136998) that let a third-party "kit" you had approved once quietly send your stored AI provider key to a different server later. Versions 0.43.0 up to, but not including, 0.55.0 are affected on macOS, Linux and Windows. Update to 0.55.0, released November 30, 2026, and rotate any provider keys you used with third-party kits.

What happened, in plain English

Docker Sandboxes keeps your real API keys (the secret tokens that let software use your paid Anthropic, OpenAI or other AI account) on your own computer, never inside the sandbox. The agent inside the sandbox only sees a placeholder. When the agent calls the AI provider, a proxy on your computer (a middleman program that relays network traffic) swaps the placeholder for the real key on the way out.

Which servers get the real key is decided by a kit: a packaged agent configuration that you can pull from a registry, a Git repository or a local folder. The first time a kit asks to use a stored key, Docker Sandboxes asks for your consent and records your answer, including the destinations you approved.

According to Endor Labs researcher Peyton Kennedy, who found the bug, the list of approved destinations was saved but never checked again. Later, the software only asked "has the user approved this kit for the Anthropic service?", not "approved it for this server?". So if a kit's author published a new version that pointed the key at their own server, your next sandbox would send it there without a new prompt.

Think of handing a courier service a signed authorisation to deliver your company card to your bank. The courier keeps the signature but ignores the address on it, so when the courier's route sheet is changed, your card goes wherever the new sheet says.

Are you affected? What to do now

Most IT readers have nothing to do. This only matters if you (or developers you support) use Docker Sandboxes (the sbx command-line tool) and have run a third-party kit with a stored provider key. Docker's built-in agent setups are not the risk described here. No attacks have been reported; the CVE record carries a CISA assessment of "Exploitation: none".

Who is affected:

  • Docker Sandboxes 0.43.0 through anything below 0.55.0, on macOS, Linux and Windows (per the CVE record).
  • Versions before 0.43.0 are not affected by this specific defect, according to Endor Labs; the bug came in with the consent feature added in 0.43.0.
  • Exploitation requires that you previously approved the service for a kit and then launched a modified version of that kit (per the CVE record).

Checklist:

  • Check your version. Run sbx version and compare it with 0.55.0. (Docker's release notes mention this command; we have not verified its exact output format.)
  • Update to Docker Sandboxes 0.55.0 or later. The 0.55.0 release notes state that kit credential injection now "respects the destinations approved separately for API keys and OAuth in credential bindings", and that bindings with no approved destinations are treated as missing.
  • Review your credential bindings. Endor Labs says approvals are stored in ~/.config/sbx/credentials.yaml; remove bindings you granted to third-party kits you no longer trust. (The Hacker News reports the Windows equivalent is under %APPDATA%\sbx\.)
  • Rotate keys for any AI provider whose key was used with a third-party kit that changed after you approved it. Check the provider's usage dashboard for calls you don't recognise.
  • Pin kits to a fixed Git commit, or keep a reviewed local copy, instead of following a moving branch or tag.
  • Scope secrets. Endor notes that sbx secret set stores keys globally by default; setting them per sandbox (the --sandbox option) limits the damage from any one kit.
  • If you can't update yet, follow Docker's own workaround from the CVE record: do not run untrusted third-party kits with stored provider credentials.

Note: upgrading stops future redirection; it does not undo a key that may already have leaked. That is what rotation is for.

The expert view

Root cause. This is a textbook authorisation gap (CWE-863, Incorrect Authorization, per the CVE record). The consent gate introduced in 0.43.0 captured the right data — service plus allowed domains — but the enforcement point, the host-side credential proxy, keyed its decision on the service name alone. The binding said "Anthropic, to api.anthropic.com"; the check effectively read "Anthropic, anywhere the current kit says". Endor describes the domain list as "written and never read".

The attack chain, conceptually. An attacker publishes a harmless-looking kit that targets the genuine provider endpoint and gets a user to approve it. Because kits are often fetched by reference rather than by content hash, the attacker can later change what that reference resolves to. The modified kit declares the attacker's host as the injection destination; per Endor, it can also widen the sandbox's network allowlist without a prompt. On the next sandbox creation, the proxy honours the old consent and attaches the real key to traffic bound for the attacker. The binding outlives the sandbox, and the policy log only shows an allowed connection, so there is little for the user to notice. Endor tested this only with a dummy Anthropic key against a local canary server, but says all thirteen built-in services share the same code path.

Why it matters beyond Docker. The placeholder-and-proxy design is the right one: it keeps long-lived secrets out of the agent's reach, which defeats prompt-injected agents trying to read keys from the environment. But it moves trust to the configuration layer. Kits, agent "skills", MCP server manifests and plug-in configs are now a supply chain in their own right, and consent that binds to a name rather than a version or content digest is vulnerable to the classic "approve once, swap later" pattern we have seen in browser extensions and package registries. Endor says it proposed binding approvals to a kit digest and logging every injection; the published 0.55.0 notes do not mention either.

Severity in context. Scores disagree. Docker, as the CVE numbering authority, rates it CVSS 4.0 5.6 (Medium), with no impact on other systems. Endor scores it 8.2 (High) under CVSS 3.1 and 6.9 under CVSS 4.0, counting a stolen key's downstream impact on the provider account. Both treat it as a local, user-interaction-required bug. Our read: Medium is fair for the bug itself, because it needs a malicious or compromised kit and a prior approval. The real-world cost of a leaked AI key, though — large bills via LLMjacking (abuse of stolen AI accounts) and access to prompts or files stored with the provider — makes it worth acting on for any team that uses community kits.

What is still unknown. Whether any public kit has ever abused this; how many users run third-party kits; exactly how 0.55.0 behaves with bindings created by older versions beyond "no approved destinations = missing"; and whether Docker will add digest pinning. The 0.55.0 release notes do not name the CVE, and there is no separate Docker security advisory that we could find.

Official sources

Get the daily brief

AI + security signal by email: headlines, a two-line summary, a link. No noise, no spam.

How often