Docker Sandboxes CVE-2026-136998: One Approval, Any Host

By 12 min read
Docker Sandboxes CVE-2026-136998, where an approved agent kit could redirect stored API keys

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?

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.

Four figures for the flaw: 70 days to fix, 13 services, 1 tested, 0 real keys stolen.
The bug touched a shared code path, but only one service was tested and no real theft is reported. Data: Endor Labs, Docker release notes.

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.

Six-step flow showing how a modified Docker Sandboxes kit redirected an approved API key.
The user saw one honest prompt; the dangerous change arrived later with no prompt at all. Data: Endor Labs, Docker v0.55.0 release notes.
  1. An attacker publishes a useful-looking third-party kit whose injection section points only at the real provider API domain.
  2. A developer runs sbx create with that kit, sees a correct consent prompt and approves it. A binding for the service is saved.
  3. 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.
  4. The developer’s next sbx create fetches the new version, finds an existing binding for the service and shows no prompt.
  5. 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.

Bar chart comparing four CVSS scores for CVE-2026-136998, from 9.3 down to 5.6.
Scores for the same flaw range from critical to medium depending on scorer and CVSS version. Data: Endor Labs, CVE record via ZeroHour.
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

Timeline from the v0.43.0 consent gate in September 2026 to the v0.55.0 fix.
The defect shipped with the consent gate itself and was reported six days later. Data: Endor Labs, docker/sbx-releases on GitHub.
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.allow entries in those kits, since Endor says they were applied without a prompt.
  • Policy log: Look in sbx policy log for 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:

  1. 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.requireSignature with sbx settings set before upgrading.
  2. 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.
  3. Clean up bindings. Remove bindings granted to third-party kits from credentials.yaml and approve them again only after reviewing the kit’s current injection domains.
  4. 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.
  5. Scope secrets. Store keys with --sandbox so a single sandbox, not every sandbox, can use them. Docker’s docs say sandbox-scoped secrets take precedence over global ones.
  6. Require signed kits. v0.55.0 exposes kit.requireSignature, kit.trustedSigners and kit.allowedSources as settings. The release notes say signatures are optional and local kits are allowed unless a setting or administrator policy says otherwise.
  7. 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

This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.

Frequently asked questions

What is CVE-2026-136998?

CVE-2026-136998 is a credential disclosure flaw in Docker Sandboxes. The host proxy recorded which domains a user approved for a credential but did not enforce that list, so a modified third-party kit could have a stored provider key sent to a host it controlled.

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

Versions from 0.43.0 up to, but not including, 0.55.0 are affected. Version 0.43.0 introduced the credential consent gate that contained the defect, and 0.55.0, released on 30 November 2026, fixes it.

Is CVE-2026-136998 exploited in the wild?

No source reports exploitation. Endor Labs demonstrated the issue with a dummy credential and a local test server, and the flaw is not in the CISA Known Exploited Vulnerabilities catalog as of 1 December 2026.

Which API keys could leak through CVE-2026-136998?

Endor Labs names OpenAI, Anthropic and GitHub credentials and says 13 built-in services share the same injection code, including Google, Mistral, Groq, xAI and OpenRouter. It tested only the Anthropic service, so the other services are inferred from shared code.

Did CVE-2026-136998 break the Docker Sandboxes microVM isolation?

No. The real key never entered the sandbox. The leak happened on the host side, where the proxy attached the key to an outbound request going to a destination the user had never approved.

What is the CVSS score of CVE-2026-136998?

It depends on who scored it. Endor Labs gives CVSS 3.1 8.2 and CVSS 4.0 6.9, while the published CVE entry carries a CVSS 4.0 score of 5.6. All scorers agree the attack vector is local and user interaction is required.

What is an agent kit in Docker Sandboxes?

A kit is a YAML definition that tells Docker Sandboxes which tools, network rules, credentials and configuration an AI agent gets. Docker ships kits for its built-in agents, and third-party kits can be fetched by reference, such as a Git tag or branch.

How do I fix CVE-2026-136998?

Upgrade the sbx CLI and daemon to v0.55.0 or later. Then remove bindings granted to third-party kits from credentials.yaml, pin kits to a fixed commit, and rotate any provider key that a third-party kit could have used after it changed.

Keep reading

Docker SandboxesCVE-2026-136998AI coding agentscredential proxysupply chain securityAPI key security