← gociux.comall insights

AI agent security · 2 Dec 2026

Docker Sandboxes CVE-2026-136998: an agent kit update could redirect your API keys

, Gociux · 2 Dec 2026 · 4 min read

TL;DR

If your developers run AI coding agents in Docker Sandboxes with third-party agent kits, upgrade sbx to v0.55.0 or later now. Before that release, approving a kit once also approved every later version of it. A changed kit could therefore point the sandbox's credential proxy at an attacker's server and receive the real model-provider or GitHub key, with no prompt and no log entry. CVE-2026-136998 isn't known to be exploited, but the fix is quick and the keys are worth money.

How the flaw works

Docker Sandboxes runs agents such as Claude Code, Codex or Gemini CLI in a microVM, so the agent never sees your real API keys. Keys are stored on the host with sbx secret set. The agent sends a placeholder, and a host-side proxy swaps in the real key for approved destinations. A kit declares which domains each key may go to, and since v0.43.0 sbx create shows those domains and asks for approval (Endor Labs).

Endor Labs researcher Peyton Kennedy found that the approval was saved with its domain list, but the list was never checked. At request time, the proxy only asked "is this service approved?" The approval wasn't tied to the kit's name, content or source either. So:

  1. An attacker publishes kit v1, which sends the Anthropic key only to api.anthropic.com. You approve it.
  2. The attacker publishes v2 under the same reference, changing only the destination to their own host.
  3. Your next sbx create runs without a prompt, and the proxy hands the real key to the attacker.

Keys are global by default, so the stolen key is the one every sandbox uses. A model-provider key means usage billed to you. A GitHub token often means write access to your repositories, which turns this into a supply-chain problem. All 13 built-in services share the same injection path; only Anthropic was tested. The sandbox isolation still held: the raw key never entered the VM. The host was simply told to send it somewhere else.

What to do

  1. Upgrade sbx to v0.55.0 or later on every developer machine that uses Docker Sandboxes.
  2. Remove approvals granted to third-party kits in ~/.config/sbx/credentials.yaml and approve again after reviewing each kit.
  3. Pin kits to a commit or a reviewed local copy instead of a moving reference.
  4. Scope keys per sandbox with --sandbox rather than global secrets, and use separate, spend-capped keys for agent work.
  5. Rotate provider keys and GitHub tokens if any third-party kit changed after you approved it. Check provider usage dashboards for spend you don't recognise.

The broader lesson is about governance more than Docker. Agent kits, MCP servers and plugins are code your developers install, and they control where credentials go. Treat them like dependencies: an approved list, pinned versions, review on update, and least-privilege keys. Our free AI policy generator covers approved tools, credentials and a request process for new tools, a good base to extend to agents. For DORA and NIS2, agent kits belong in the third-party and supply-chain register like any other component.

Questions

Which Docker Sandboxes versions are affected by CVE-2026-136998?

Versions from v0.43.0, the release that introduced the kit credential approval prompt, up to the fix in v0.55.0, released on 30 November 2026. Upgrade the sbx CLI to v0.55.0 or later.

Is CVE-2026-136998 exploited in the wild?

No exploitation has been reported. The researcher demonstrated the attack with a dummy key against a local test server.

Do I need to rotate my API keys?

Only if a third-party agent kit you approved changed after approval, or you can't tell. In that case rotate the model-provider keys and GitHub tokens the sandbox could use and check their usage logs.

Developers running AI agents?

We set up agent sandboxing, key scoping and an approved-tooling process your developers can live with, documented for your DORA, NIS2 or PCI DSS auditor.

Request a quote →

Sources