Subscribe
0%
Illustration for: Docker Sandboxes flaw CVE-2026-136998 let agent kit updates silently take your AI API keys. Update to sbx 0.55.0

Docker Sandboxes flaw CVE-2026-136998 let agent kit updates silently take your AI API keys. Update to sbx 0.55.0

In Docker's sandbox tool for AI coding agents, approving a third-party kit once was enough for a later version of that kit to send your real Anthropic, OpenAI or GitHub key to a server of its choosing, with no new prompt. Docker fixed it in sbx 0.55.0 on November 30. Anyone who granted keys to outside kits should check their bindings and consider rotating.

Listen to this article0:00 / 5:03

Docker has fixed CVE-2026-136998, a flaw in Docker Sandboxes (the sbx tool for running AI coding agents in isolated environments) that let an updated third-party "kit" receive a developer's real provider API key without asking again. The fix shipped in sbx 0.55.0 on November 30, according to Docker's release notes. Endor Labs researcher Peyton Kennedy found the bug and reported it to Docker on September 21, The Hacker News reports.

Why it matters: Docker Sandboxes keeps keys on the host and swaps them into an agent's outbound requests only for destinations you approved, so the agent never holds the secret. This bug undid that promise for anyone using kits from outside Docker, and it would have been invisible: per The Hacker News, the policy log recorded the leaking connection as allowed.

What went wrong

When a third-party kit wants a credential, sbx asks the user to approve it, and records which domains the key may go to. According to Kennedy's findings, as reported by The Hacker News and DEV Community:

  • The approval was remembered by service name only. The approved domain list was written down but never checked when the key was injected.
  • The approval was not tied to the kit or its version, and it survived deleting the sandbox.
  • So a later version of an approved kit could point the same service at an attacker's host and get the real key, with no new prompt.
  • A malicious kit could also add its own server to the sandbox's network allowlist, per The Hacker News.

DEV Community lists 13 built-in services that share the injection path, including Anthropic, OpenAI, GitHub, Google, Mistral, OpenRouter and xAI. Kennedy tested with a dummy Anthropic key and his own server. No attacks have been reported, The Hacker News says.

The bug came in with the consent system added in sbx 0.43.0, released September 15, so 0.43.0 up to but not including 0.55.0 are affected on macOS, Windows and Linux (The Hacker News; DEV gives the same range).

Scores

Scoring Result
CVSS 3.1 8.2 High (Kennedy first scored 9.3, then changed the attack vector to local, per The Hacker News)
CVSS 4.0, Kennedy 6.9 Medium
CVSS 4.0, Docker 5.6 Medium

What 0.55.0 changes

Docker's notes say kit credential injection now honours the destinations approved separately for API keys and for OAuth, and treats a credential binding with no approved destinations as missing. The notes do not name the CVE.

The same release tightens other things that matter here: host-managed keys are only substituted into HTTPS requests from local sandboxes, sandbox networks stay blocked until egress policy is in place (including after daemon restarts), and kit-signature options moved from environment variables to settings such as sbx settings set kit.requireSignature true. Docker notes that without a saved setting or admin policy, signatures are optional and local kits are allowed.

Kennedy also asked Docker to bind approvals to a kit's content digest and log every key injection; The Hacker News says the published notes mention neither. It's the second flaw he has reported in the product: an earlier bug letting an agent reach host files outside approved folders was fixed November 3, per The Hacker News.

What to do

  1. Update sbx to 0.55.0 or later. Read the 0.55.0 breaking changes first. Custom secrets now need at least 8 characters and explicitly bound headers, and broad workspace mounts that overlap sbx's own config are rejected.
  2. Review your credential bindings in ~/.config/sbx/credentials.yaml (%APPDATA%\sbx\credentials.yaml on Windows, per The Hacker News) and remove any granted to third-party kits.
  3. Rotate provider keys that sat behind a third-party kit that has changed since you approved it.
  4. Scope keys per sandbox with the --sandbox flag on sbx secret set instead of storing them globally.
  5. Pin kits to a fixed commit or a local folder, and read a kit's inject domains and permissions.network.allow on every sbx create (The Hacker News).
  6. Consider turning on kit.requireSignature so unsigned kits can't load.

We couldn't read Endor Labs' own write-up or the CVE record for this article; the researcher details and scores above come from The Hacker News and DEV Community.

Who should care: developers and platform teams running AI coding agents in Docker Sandboxes, especially with kits from outside Docker.

Sources

  1. Docker Docs — Docker Sandboxes release notes (0.55.0, Nov 30, 2026) docs.docker.com
  2. The Hacker News — Docker Sandboxes Flaw Lets Malicious AI Agent Kit Updates Steal Developers' API Keys thehackernews.com
  3. DEV Community (IA Compa) — Docker Sandboxes flaw CVE-2026-136998 let malicious agent kits steal developers' API keys; fixed in v0.55.0 dev.to

#Docker#Docker Sandboxes#sbx#CVE-2026-136998#Endor Labs#AI agents#API keys#supply chain