Docker Sandboxes CVE-2026-136998: Approve an AI Agent Kit Once and Its Next Update Can Send Your Anthropic, OpenAI or GitHub Key Elsewhere. Fixed in sbx 0.55.0
What to do first. If you run AI coding agents in Docker Sandboxes (the sbx command line tool and its sandboxd daemon), upgrade to version 0.55.0. Run sbx version to see what you have. Every version from 0.43.0 up to but not including 0.55.0 is affected, on macOS, Windows and Linux, according to the CVE record Docker published. Then open your approvals file, ~/.config/sbx/credentials.yaml (on Windows, %APPDATA%\sbx\credentials.yaml), and delete any approval you gave to a third-party kit. If you approved a third-party kit that has since changed, rotate the provider keys behind it: Anthropic, OpenAI, GitHub, whatever it asked for. Then scope your keys to single sandboxes with the --sandbox flag instead of the global default.
Nobody has reported this being used against real developers. The researcher, Peyton Kennedy of Endor Labs, demonstrated it with a dummy key and a test server on his own machine. It is not in CISA's Known Exploited Vulnerabilities catalog (we checked the KEV JSON, catalog version 2026.11.30).
What it is
Docker Sandboxes runs an AI coding agent inside a small virtual machine and makes one promise about your keys: they never go in. You store a key on the host with sbx secret set. The agent inside the VM sends its requests with a placeholder header, and a proxy on the host swaps in the real key on the way out, but only for destinations that are allowed to receive it.
Who decides those destinations is the kit. A kit is a packaged agent configuration, fetched by reference from a registry, a Git tag or branch, or a local folder, much like a package. Since version 0.43.0, a third-party kit that wants a credential has to ask, and the developer sees a truthful prompt naming the service and the domains the key will go to. Approving writes a record to credentials.yaml listing those domains.
That list was never checked again. In Kennedy's words: "The binding's domains list is written and never read. At request time, the gate is a boolean keyed on the service name." If an approval existed for "anthropic", the proxy put the real key into requests to whatever domains the current version of the kit named. "The domains the operator approved play no part in that decision."
So the attack is an ordinary update:
An attacker publishes kit version 1, which sends the Anthropic key only to api.anthropic.com.
You read the prompt, which is accurate, and approve.
The attacker ships version 2 at the same tag, branch or folder. One line changes: the destination is now a server they control.
Your next sbx create sees an approval for "anthropic" and asks nothing.
The proxy hands the real key to the attacker's server.
The same kit file can also add the attacker's server to the sandbox's network allowlist without a prompt. The approval survives deleting the sandbox. And afterward, Kennedy found, the policy log "records the connection to the canary host as allowed and says nothing about a credential being injected into it." In his test the key arrived in cleartext over plain HTTP.
Docker's own advisory text, from the CVE record: Docker Sandboxes "recorded approved credential destinations but did not enforce them during proxy substitution for third-party kits. An attacker-controlled kit could reuse an existing service binding while changing its injection destination, causing the host proxy to disclose a stored provider credential to an attacker-controlled host. Exploitation requires an operator to have previously approved the service and subsequently launch the modified kit."
Why this is token theft
The VM boundary held the whole time. Raw keys never entered the guest. It did not matter. As Kennedy put it, "The key does not need to enter the VM if the VM's kit decides where the host sends it."
What leaves is the real credential. For a model provider, Kennedy's impact table says the attacker gets "metered API access billed to the victim's account." That is the category we keep writing about: theft of metered inference capacity. Someone else runs their workload on your Anthropic or OpenAI bill. For GitHub, the token carries whatever its scopes allow, which for a typical developer token includes write access to your repositories. That turns a stolen key into a supply-chain foothold of its own.
The blast radius is set by a default. The credentials documentation says it plainly: "Service secrets are global by default, so the secret is available to all sandboxes." The key a malicious kit can redirect is the one every sandbox on the machine uses.
What is affected, and what the fix does
Product: Docker Sandboxes, the sbx CLI and sandboxd. The CVE record and the release notes name Docker Sandboxes only. They do not name Docker Desktop, and we did not find a Docker Desktop version tied to this flaw in the sources we read.
Affected: 0.43.0 up to but not including 0.55.0, macOS, Linux and Windows (CVE record). Kennedy confirmed it on 0.43.0 on macOS 15.6 arm64. Versions before 0.43.0 lack the approval system this bug lives in; Kennedy says their credential exposure "is a separate question I did not assess."
Fixed: 0.55.0, released November 30, 2026. The release notes: "Credential injection now enforces the approved destinations for API keys and OAuth tokens. Bindings with no approved destinations are treated as missing."
Services on the same code path: 13 built-in services, per Kennedy: anthropic, copilot, cursor, devin, droid, github, google, groq, mistral, nebius, openai, openrouter and xai. He tested one, anthropic, with a dummy value. The other twelve share the code path and were not demonstrated separately.
Severity: two scores, both honest. Kennedy rates it 8.2 High under CVSS 3.1 (he first scored it 9.3 Critical, then corrected the attack vector to local, because the malicious kit is a file you fetch). Under CVSS 4.0 his score is 6.9 Medium and Docker's is 5.6 Medium. The difference is whether harm to the provider account behind the stolen key counts in the base score. Kennedy's vector counts it; Docker's does not.
Weakness: CWE-863, Incorrect Authorization (CVE record).
Two things Kennedy asked for are not in the published fix notes: tying an approval to a kit's content digest, so a new version has to ask again, and logging every key injection in the policy log. The 0.55.0 notes confirm destination enforcement and do not mention either. That means a kit update that keeps the same destinations still inherits your approval. Read what you run.
Cloud sandboxes keep a separate secret store. The research covered the local product, and the sources we read do not establish whether cloud sandboxes ever shared the affected logic.
What held. Kennedy lists the controls that worked: a kit cannot impersonate a built-in agent, a mixin kit cannot add an injection domain for a built-in service, sbx kit add refuses credential-declaring kits outright, non-interactive runs decline instead of proceeding, and the consent prompt defaults to decline. The prompt was truthful. It was just not binding.
What to do
Upgrade to Docker Sandboxes 0.55.0 or later. Check with sbx version. Note the 0.55.0 release notes list breaking changes: it stops reading several environment variables (including the kit signature and allowed-source settings), so save those with sbx settings set before upgrading, or your kit signing requirement quietly turns off.
Review approvals. Open ~/.config/sbx/credentials.yaml (%APPDATA%\sbx\credentials.yaml on Windows) and remove every binding granted to a third-party kit. Per Docker's credential documentation the file records approvals, not key values; the keys themselves sit in your OS keychain (macOS Keychain, Windows Credential Manager, the Linux Secret Service).
Rotate the provider keys behind any third-party kit you approved that later changed, or that you cannot verify did not change. Do it at the provider: Anthropic console, OpenAI dashboard, GitHub token settings. Then check each provider's usage and billing page for spend you do not recognize, and GitHub's security log for pushes or token use you did not make.
Scope keys. Replace global secrets with sandbox-scoped ones: sbx secret set openai --sandbox my-sandbox. List what you have with sbx secret ls and remove globals with sbx secret rm. On the provider side, give agent keys their own project or workspace with a spending limit, and give GitHub tokens the narrowest scopes and repositories the agent needs.
Pin kits. Where your kit source allows it, fetch a fixed commit instead of a tag or branch, or keep a reviewed copy in a local folder you control.
Read the kit every time. Before each sbx create, check its inject domains and its permissions.network.allow entries, not only the first time. Before 0.55.0, the product did not show you a change.
Am I affected?
You were exposed if all three are true: your sbx version is 0.43.0 or later and below 0.55.0; your credentials.yaml holds a binding for a third-party kit (built-in agents ship their own kits); and that kit was fetched by tag, branch or registry reference that someone else can update. If the kit came from a local folder you control, or you never approved a third-party kit's credential request, this flaw had nothing to redirect. If you cannot tell whether the kit changed since you approved it, treat the key as exposed and rotate it. The policy log will not tell you after the fact, because before the fix it did not record injections.
How we know, and what we did not check
We read Kennedy's technical write-up on the Endor Labs site (published November 30, 2026), Docker's CVE-2026-136998 record (published by Docker as the CNA on December 1, 2026), the Docker Sandboxes 0.55.0 release notes, Docker's credentials documentation, and the CISA KEV JSON. The Hacker News report (December 1) is where we first saw it; it draws on the same write-up and vendor documents, so it is one source, not a second confirmation.
Disclosure timeline, from the write-up: reported to Docker September 21, 2026 (Endor tracking ID ENDOR-VUL-2026-21091); fix released in 0.55.0 on November 30. It is Kennedy's second Docker Sandboxes finding: the first, CVE-2026-103916, let the file-copy command reach host files outside a sandbox's approved folders and was fixed in 0.51.0 on November 3.
Indicators of compromise: none published in the sources we read. The researcher's test used a dummy key and a loopback test server, so there are no attacker domains, kit names or hashes to block, and we added nothing to our feed.
Did our edge see it? Not applicable. The flaw lives in a local daemon on a developer machine, and the stolen key leaves as an ordinary outbound HTTPS or HTTP request to wherever the kit points. No edge sensor or honeypot of ours sits in that path, so we ran no edge check.
What is not known: whether any malicious kit has done this in the wild (none reported); whether the twelve untested built-in services behave identically in practice (they share the code path, per the researcher); whether cloud sandboxes were ever affected; and how many developers use third-party kits at all. We have no population number for that, so we will not guess one.
Sources
Endor Labs, Peyton Kennedy, CVE-2026-136998 technical write-up: https://www.endorlabs.com/learn/cve-2026-136998-docker-sandboxes
CVE-2026-136998 record (Docker, CNA): https://www.cve.org/CVERecord?id=CVE-2026-136998
Docker Sandboxes release notes, 0.55.0: https://docs.docker.com/ai/sandboxes/release-notes
Docker Sandboxes credentials documentation: https://docs.docker.com/ai/sandboxes/configuration/credentials/
CISA Known Exploited Vulnerabilities JSON (catalog 2026.11.30): https://www.cisa.gov/known-exploited-vulnerabilities-catalog
The Hacker News, December 1, 2026: https://thehackernews.com/2026/12/docker-sandboxes-flaw-lets-malicious-ai.html
Read next: the same shape across four other agents, where nobody broke the sandbox either: Four AI Coding Agents Got Their Sandboxes Broken This Week, and Nobody Attacked the Sandbox.
Every indicator in this post is in the feed. Free.
1.58M+ IOCs, STIX 2.1 / TAXII, 88% novel vs ThreatFox, exploited-CVE leads ahead of CISA. No credit card — a free API key in 30 seconds, and you can audit every claim above against the live endpoints.



Comments