You approved an AI agent kit’s request to use your Anthropic key once. Weeks later the kit’s author changed one line, and your next sandbox quietly sent that key somewhere else, without asking you again. That is CVE-2026-136998 in Docker Sandboxes, disclosed by Endor Labs and fixed by Docker on 30 November 2026.
In short: the Docker Sandboxes vulnerability CVE-2026-136998 affects the sbx CLI from v0.43.0 up to v0.55.0, where the host credential proxy saved the domains you approved for a key but never checked them. Upgrade to v0.55.0, then review which third-party kits hold credential approvals and rotate keys where a kit changed after you approved it.
- What is Docker Sandboxes?
- What is CVE-2026-136998?
- How the attack worked, step by step
- Who is affected by CVE-2026-136998?
- Why is the severity score so different?
- Timeline
- How does it compare with other agent sandbox flaws?
- How to detect CVE-2026-136998 abuse
- How to mitigate CVE-2026-136998
- Open questions
- The bottom line
- Sources
What is Docker Sandboxes?
Docker Sandboxes is Docker’s product for running AI coding agents such as Claude Code, Codex, Cursor and GitHub Copilot inside isolated microVMs. A microVM is a lightweight virtual machine with its own kernel, so the agent cannot touch the host’s processes or files directly. According to Docker’s product page, each sandbox also gets a private Docker Engine, and the product ships as a standalone sbx command line tool that does not need Docker Desktop.
The selling point is that an agent can run with broad permissions inside the VM while your secrets stay outside it. Docker’s documentation is explicit that the real credential stays on the host when the proxy manages it.
How the credential proxy works
The credential proxy is a host-side HTTP and HTTPS proxy that sits between the sandbox and the internet. When you store a key with sbx secret set, it goes into the host’s keychain (macOS Keychain, Windows Credential Manager or the Linux Secret Service). The agent inside the VM only sees a placeholder value. When the agent sends a request to an approved API domain, the proxy swaps the placeholder for the real key on the way out.
This design means a compromised or prompt-injected agent cannot simply print its API key, because it never has it. The question CVE-2026-136998 raises is a different one: who decides where the proxy is allowed to send the real key?
What is an agent kit?
A kit is a YAML file that defines what an agent gets: tools, network allow rules, credentials and configuration. Each kit has an injection section that names, for each service, the domains where the proxy should insert the credential. Docker ships kits for its built-in agents. Third-party kits are fetched by reference, such as a Git tag, branch or directory, and Endor Labs notes they can declare credentials for the same built-in services as Docker’s own kits.
What is CVE-2026-136998?
CVE-2026-136998 is an incorrect authorization flaw (CWE-863) in the consent gate for third-party kit credentials. Docker’s own release notes describe it as a case where a modified third-party kit could reuse a previously approved service binding to send a stored provider credential to an attacker-controlled host.
Version 0.43.0, released on 15 September 2026, added that consent gate. Its release notes say credential-binding consent now defaults to decline and clearly shows when API-key secrets will be sent to new domains. The prompt itself was accurate. The problem was what happened after you said yes.
The root cause in one sentence
When you approved a kit, Docker wrote a binding for that service and its domains to credentials.yaml in your config directory, but at request time the proxy only checked whether a binding existed for the service name, not which domains it listed.
Endor Labs describes the saved domain list as written but never read. In its test, setting the recorded domains to an unrelated value made no difference: the key went to whatever domain the currently running kit declared. Endor also found that the binding was not tied to a kit name, a content hash or a source, so an approval for one version of a kit carried over to every later version fetched from the same reference.
How the attack worked, step by step
Endor Labs laid out the attack as a sequence of ordinary-looking events. Nothing below requires access to the victim’s machine.
- An attacker publishes a useful-looking third-party kit whose injection section points only at the real provider API domain.
- A developer runs
sbx createwith that kit, sees a correct consent prompt and approves it. A binding for the service is saved. - The attacker updates the kit at the same reference. The only change is the injection domain, which now points to a server the attacker controls.
- The developer’s next
sbx createfetches the new version, finds an existing binding for the service and shows no prompt. - The host proxy attaches the real key to requests bound for the attacker’s domain.
Endor adds two details that make this worse. The binding survived sbx rm, so tearing down the sandbox did not reset trust. And the policy log recorded only an allowed connection, not the fact that a credential had been injected into it. Kits can also declare network allow entries, which Endor says are applied without a prompt.
What it is not
The microVM boundary held. The raw key never entered the guest, and Endor found several controls that worked as designed: a kit cannot impersonate a built-in agent by name, mixin kits cannot add injection domains for a built-in service, and non-interactive runs without a terminal decline credential requests because there is no flag to auto-approve. In Endor’s reproduction, the key arrived in cleartext over plain HTTP at a local test server, using a dummy value.
Who is affected by CVE-2026-136998?
You are exposed if all of the following were true at some point between v0.43.0 and v0.55.0:
- You ran a Docker Sandboxes version from 0.43.0 up to, but not including, 0.55.0.
- You stored a provider credential on the host with
sbx secret set, which is global by default. - You approved a credential request from a third-party kit, not one of Docker’s built-in kits.
- That kit was fetched by a moving reference (a branch or tag) that someone else could update.
Users who only ran Docker’s built-in agents are not in the scenario Endor describes, because Docker’s own kits ship with the CLI and do not need the third-party consent flow.
Which credentials were at risk?
Endor tested the Anthropic service only, with a dummy key. It says 13 built-in services share the same injection path: anthropic, copilot, cursor, devin, droid, github, google, groq, mistral, nebius, openai, openrouter and xai. Docker’s current credentials documentation lists 11 built-in services, without copilot and devin, so the two lists do not match exactly.
The impact differs by key type. Endor points out that a model provider key gives metered API access billed to the victim, while a typical developer GitHub token can grant write access to the victim’s repositories, which opens a path to code tampering.
How to check your version and bindings
First confirm the installed sbx release is 0.55.0 or later. Then open ~/.config/sbx/credentials.yaml (or %APPDATA%\sbx\credentials.yaml on Windows). Docker’s documentation says this file stores approvals, not secrets, under a bindings section keyed by service. Any binding that was created for a third-party kit is worth reviewing.
Why is the severity score so different?
Three scores are in circulation for the same bug, and the gap is wider than usual.
| Scorer | CVSS version | Score | Notable choice |
|---|---|---|---|
| Endor Labs (first draft) | 3.1 | 9.3 Critical | Network attack vector |
| Endor Labs (submitted) | 3.1 | 8.2 High | Local vector, scope changed, integrity high |
| Endor Labs | 4.0 | 6.9 Medium | High impact on subsequent systems |
| Published CVE entry | 4.0 | 5.6 Medium | No impact on subsequent systems |
Endor says it moved from a network to a local attack vector because the kit is a fetched artifact and the sandbox daemon listens on a local Unix socket. The remaining gap comes from how much weight each scorer gives to what a stolen key can do elsewhere, such as pushing code with a GitHub token. Scores on a fresh CVE can still change, so treat the 5.6 as the floor, not the verdict.
Timeline
| Date | Event | Source |
|---|---|---|
| 15 Sep 2026 | v0.43.0 released with the credential consent gate | GitHub releases |
| 21 Sep 2026 | Endor Labs reports the flaw to Docker (ENDOR-VUL-2026-21091) | Endor Labs |
| 3 Nov 2026 | v0.51.0 fixes a separate bug, CVE-2026-103916 | Endor Labs, GitHub releases |
| 30 Nov 2026 | v0.55.0 released with the fix; Endor publishes its write-up | Endor Labs, GitHub releases |
| 1 Dec 2026 | CVE entry appears in public trackers | ZeroHour |
How does it compare with other agent sandbox flaws?
This is the second Docker Sandboxes bug from the same Endor Labs researcher, Peyton Kennedy, in about a month. The first one attacked the file boundary; this one attacked the credential boundary.
| CVE-2026-103916 | CVE-2026-136998 | |
|---|---|---|
| Boundary broken | Host file system | Host credential store |
| Weakness | CWE-59, symlink following in sbx cp |
CWE-863, approval not enforced |
| What goes wrong | Copy command reads or writes host files outside shared folders | Proxy sends stored key to an unapproved host |
| Attacker needs | Agent with write access to the workspace, user runs sbx cp |
User approved the kit once, kit later changes |
| CVSS 3.1 (Endor) | 8.2 | 8.2 |
| Fixed in | v0.51.0, 3 Nov 2026 | v0.55.0, 30 Nov 2026 |
The pattern is familiar from other AI coding tool incidents on this site. In the Claude Code secrets leak, a “don’t ask again” choice turned into secrets sitting in a config file. In TrojanPony and the AGENTS.md malware campaign, attackers hid malicious instructions in the add-ons that configure coding agents. CVE-2026-136998 combines both ideas: a remembered approval plus a third-party configuration file that can change after review.
How to detect CVE-2026-136998 abuse
Detection is hard by design here, because the vulnerable versions did not log credential injection. Endor notes that sbx policy log showed the outbound connection as allowed, with nothing to say a key was attached. Focus on what you can still see.
On the developer machine
- Kit history: For each third-party kit with a binding in
credentials.yaml, compare the injection domains in the version you approved against every later version at the same reference. Any domain that is not the provider’s real API endpoint is a red flag. - Network allow rules: Review
permissions.network.allowentries in those kits, since Endor says they were applied without a prompt. - Policy log: Look in
sbx policy logfor allowed connections from sandboxes to domains that are not known provider, package registry or Git hosting endpoints.
On the provider side
- API key usage: Check usage dashboards and billing for OpenAI, Anthropic, Google and other providers for calls from unfamiliar IP addresses or spikes that do not match your work.
- GitHub audit log: For tokens stored in Docker Sandboxes, review the audit log and security log for pushes, new deploy keys or workflow changes you did not make.
- MITRE ATT&CK: No source publishes ATT&CK mappings for this CVE. The closest fits for hunting are T1195.001 (supply chain compromise of software dependencies and development tools) and T1552 (unsecured credentials), but that mapping is this article’s, not the researchers’.
How to mitigate CVE-2026-136998
Docker says v0.55.0 now enforces the approved destinations for API keys and OAuth tokens, and treats bindings with no approved destinations as missing. That fixes the bug, but it does not undo anything that already happened. In priority order:
- Upgrade the sbx CLI and daemon to v0.55.0 or later. Note the breaking changes: v0.55.0 stops reading several environment variables, so save settings like
kit.requireSignaturewithsbx settings setbefore upgrading. - Rotate keys at risk. If any third-party kit you approved changed after your approval, rotate every provider key and GitHub token that kit could have requested.
- Clean up bindings. Remove bindings granted to third-party kits from
credentials.yamland approve them again only after reviewing the kit’s current injection domains. - Pin kits. Endor recommends pinning third-party kits to a fixed commit or keeping a reviewed local copy, so a moving branch cannot change under you.
- Scope secrets. Store keys with
--sandboxso a single sandbox, not every sandbox, can use them. Docker’s docs say sandbox-scoped secrets take precedence over global ones. - Require signed kits. v0.55.0 exposes
kit.requireSignature,kit.trustedSignersandkit.allowedSourcesas settings. The release notes say signatures are optional and local kits are allowed unless a setting or administrator policy says otherwise. - Benefit from HTTPS-only injection. Also in v0.55.0, host credentials are only substituted into HTTPS requests to external endpoints. That would have blocked the exact plain-HTTP reproduction Endor used, though an attacker can run an HTTPS server just as easily.
Teams managing many developers should also treat agent kits like any other dependency: an allowlist of sources, code review for changes, and a named owner. Our write-up on the Microsoft Agent Framework PyPI attack covers the same supply chain discipline for agent libraries.
Open questions
- Exact fix design: Docker’s notes say destinations are now enforced, but do not say whether approvals are now tied to a kit’s content hash, which Endor also recommended.
- Injection logging: Endor asked for credential injection to be logged next to the destination. The v0.55.0 notes do not say whether that was added.
- The other 12 services: Endor tested Anthropic only. The wider list is an inference from shared code, and Docker’s documentation lists a different number of built-in services.
- Real-world use: Nobody has reported a malicious kit exploiting this. There is also no public count of third-party kits in use, so the size of the exposed population is unknown.
- Final score: The CVE entry’s 5.6 and Endor’s 8.2 rest on different judgments about downstream impact, and either may be revised.
The bottom line
CVE-2026-136998 did not break the Docker Sandboxes microVM; it broke the promise that an approval means what the prompt said. One consent click for a third-party kit became a standing permission that a later kit version could point anywhere. Upgrade to v0.55.0, rotate keys used with kits that changed, and pin every third-party kit you let near your credentials.
Sources
- Endor Labs: CVE-2026-136998, Docker Sandboxes vulnerability lets malicious AI agent kits steal developers’ API keys
- Docker Sandboxes v0.55.0 release notes (docker/sbx-releases)
- Docker Sandboxes v0.43.0 release notes (docker/sbx-releases)
- Docker documentation: Sandboxes credentials
- Docker: Docker Sandboxes product page
- Endor Labs: CVE-2026-103916, Docker Sandboxes file access outside the sandbox
- ZeroHour: CVE-2026-136998, credential disclosure in Docker Sandboxes before 0.55.0
- ZeroHour: Docker Sandboxes flaw let approved AI kits reuse host credentials
This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.