The Short Answer
Docker Sandboxes versions 0.43.0 through 0.54.x recorded which servers you approved for your API keys — and then never checked that list again. Docker fixed the flaw, tracked as CVE-2026-136998, in version 0.55.0 on November 30, 2026. Endor Labs researcher Peyton Kennedy showed that a third-party agent kit you approved once could later be updated at the same tag, branch, or directory to send your real Anthropic, OpenAI, or GitHub key to a server the attacker controls, with no new prompt and nothing useful in the logs. The sandbox isolation itself held: the raw key never entered the virtual machine. What failed was the host-side decision about where the key is allowed to go. Upgrade to 0.55.0 or later, review every third-party kit approval you have granted, and rotate any key whose kit changed after you approved it. No attacks using this flaw have been reported — but the attack looks like a normal software update, so “no reports” is weaker comfort than it sounds.
What Docker Sandboxes Is Supposed to Guarantee
Docker Sandboxes runs each AI coding agent inside its own lightweight virtual machine. The design promise is simple: your real API keys stay on the host and never enter the sandbox. The agent inside sends a placeholder value. A proxy on the host intercepts the outbound request, swaps the placeholder for the real credential, and forwards it — but only to destinations you approved.
That approval flow is the consent gate added in version 0.43.0, released September 15, 2026. The first time a third-party kit asks for a credential, Sandboxes shows a prompt naming the credential and the domains it will be sent to, and the default answer is decline. If you approve, the decision is written to a bindings file on your machine (~/.config/sbx/credentials.yaml on Linux and macOS), keyed by service name, with the approved domains listed per credential type. API keys and OAuth tokens keep separate domain lists, and approving one does not grant the other.
On paper, that is a sound design: the approved destinations are on disk, the prompt tells the truth, and the safe answer is the default. The vulnerability is what did not happen when a real request arrived. Readers who followed the KVM host-memory escape, CVE-2026-99312 will recognize the pattern: the boundary that matters is rarely the one in the marketing diagram.
The Flaw: Consent Recorded, Never Enforced
Kennedy’s finding reduces to one missing comparison. When a sandbox request reached the host proxy, the gate performed a single boolean test: does the bindings file contain a row for this service name? If a row existed, the request passed. The proxy then substituted the real key into requests sent to whatever domains the current version of the kit declared. The domains you approved played no part in the decision.
Two design choices compounded the miss. First, the approval was bound to a service name — anthropic, openai, github — not to the kit you actually reviewed. The binding records no kit name, no content digest, and no source, so approval granted to one version transferred silently to every later version fetched from the same reference. Second, the kit controls its own network allowlist: a kit update could add the attacker’s server to the sandbox’s permitted destinations in the same change that redirected the key, again without a prompt. Kennedy’s summary is the accurate one: a prompt is only as strong as what its answer is bound to.
How the Attack Works in Five Steps
The demonstrated attack is an ordinary update, which is what makes it dangerous.
First, the attacker publishes a plausible kit whose rules name only the real provider — api.anthropic.com, in the demonstration. Second, you run the kit, read a prompt that accurately says your key will go to that domain, and approve. Third, the attacker ships a new version at the same tag, branch, or directory, changing a single line: the destination now points at a server the attacker controls. Fourth, your next sandbox creation finds an existing row for the service name and passes without a prompt or warning; the host proxy substitutes your real key into requests to the attacker’s host. Fifth, you see nothing afterwards: the policy log records the connection as allowed and says nothing about a credential being injected.
Kennedy demonstrated this with a dummy key and a local test server, and two details matter. The dummy key was delivered over plain HTTP — no TLS interception, just an endpoint that answers. And when the researcher rewrote the approved-domain list to an unrelated value, the leak was identical, confirming the recorded list did not influence the destination at all.
What the attacker walks away with depends on the key. A redirected Anthropic or OpenAI key means metered API access billed to your account. A redirected GitHub token carries whatever scopes that token holds — for a typical developer token, write access to repositories. Keys are global by default, so the redirected key is the same one every sandbox on the machine uses, unless you scoped it to a single sandbox. This matters beyond laptops: anyone who has followed our guide to installing Docker on a VPS and runs agent tooling on that server carries the same exposure.
Who Is Affected and What Is at Stake
The affected range is every Docker Sandboxes release from 0.43.0 up to but not including 0.55.0, on macOS, Windows, and Linux, per the vendor-published CVE record. Versions before 0.43.0 are not affected because there was no consent binding to bypass. Kennedy verified the attack on macOS; the builds share the same daemon and proxy path across platforms.
Thirteen built-in integrations share the credential-injection path: anthropic, copilot, cursor, devin, droid, github, google, groq, mistral, nebius, openai, openrouter, and xai. Only the anthropic path was demonstrated end to end, with a dummy value; the other twelve are covered by the shared code rather than by individual tests. Docker Sandboxes Cloud uses a separate credential store and was not assessed. No malicious kit or real-world victim has been identified, and the flaw is not in CISA’s Known Exploited Vulnerabilities catalog.
The severity scores disagree in an instructive way. The entire difference is whether impact on your provider account — a subsequent system, in CVSS terms — is counted:
| Scorer | System | Score | Reading |
|---|---|---|---|
| Endor Labs (finder) | CVSS 3.1 | 8.2 High | Scope changed: impact lands on your provider account |
| Endor Labs (finder) | CVSS 4.0 | 6.9 Medium | Subsequent-system confidentiality and integrity counted high |
| Docker (CNA) | CVSS 4.0 | 5.6 Medium | Subsequent-system impact scored zero |
Kennedy initially scored the issue 9.3 Critical, then corrected the attack vector from network to local — the malicious kit is a file you fetch and run, not a service an attacker reaches over the network — which produced the 8.2. The honest framing is a local-vector confidentiality flaw whose real shape is supply-chain trust: the score debate is about bookkeeping, not about whether your key leaves the machine. It does. The timeline matters too: the consent gate shipped September 15, 2026; Endor Labs reported the flaw on September 21; the fix arrived November 30, more than two months later.
What the 0.55.0 Fix Changes — and What It Does Not
Version 0.55.0, released November 30, 2026, closes the demonstrated hole with two runtime changes. Credential injection now enforces the approved destinations for API keys and OAuth tokens separately: a kit asking for a domain outside your binding prompts again, so the silent version swap stops there. And a binding with no approved destinations is now treated as missing — under the old code, the mere existence of a row was enough to pass. When approval blocks a path, the proxy strips authentication headers rather than substituting the key.
The same release adds a second layer: host credential injection now requires HTTPS. External endpoints 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 proof-of-concept leaked the dummy key over plaintext HTTP, so this change alone defeats that exact leak shape.
What the release notes do not confirm are the researcher’s other two asks: binding approval to the kit artifact itself, keyed by content digest so any change re-prompts, and recording every credential injection in the policy log. Destination enforcement fixes the demonstrated attack; digest binding would fix the broader class — a kit that keeps the same destinations but changes everything else it does. Until that lands, a kit update that stays inside your approved domains inherits your approval without a word.
What to Do on Your Machine or VPS This Week
Start with the upgrade. Update every Docker Sandboxes installation to 0.55.0 or later. The fix is in the host proxy, so no per-sandbox workaround substitutes for it.
Then audit what you already approved. Open your bindings file and list every third-party kit approval, the service it covers, and the domains recorded. Remove approvals for kits you no longer use, and for kits you keep, re-check the destinations the current version declares at every launch until you are confident the updated enforcement is in place. Pin kits to fixed commits rather than floating tags or branches, so an upstream change cannot arrive unreviewed.
Scope and rotate deliberately. Keys stored globally are the ones at risk, so scope keys to individual sandboxes where you can, and give agent workloads the narrowest provider keys that work — a key that can only call one model, or a GitHub token limited to the repositories the agent touches. Rotate any key whose kit changed after approval, and any key you cannot account for. Indiscriminate rotation of every credential is not justified — no exploitation has been reported — but “the kit updated itself last month and I never re-read it” is exactly the condition this flaw exploited.
Finally, fold this into the same hardening pass as the rest of your server. The general discipline — least-privilege credentials, reviewable updates, logs you actually read — is the same one in our walkthrough on how to secure your VPS. Developers weighing where to run this tooling will find the trade-offs in our developer VPS roundup; the short version is that a cheap, isolated box you can rebuild beats the machine holding your primary keys.
FAQ
Which versions are affected by CVE-2026-136998?
Docker Sandboxes 0.43.0 through 0.54.x, on macOS, Windows, and Linux. Version 0.55.0, released November 30, 2026, fixes it. Versions before 0.43.0 did not have the consent binding and are not affected.
Did the sandbox itself get escaped?
No. The microVM boundary and the placeholder-key design held. The flaw was in the host proxy’s decision about where to send the real key: it checked that an approval existed for the service name, but never compared the destination against the domains you approved.
Which API keys could leak?
Thirteen built-in integrations share the injection path, including Anthropic, OpenAI, GitHub, and Google. The researcher demonstrated the Anthropic path with a dummy key; the others share the same code.
Has this been exploited in the wild?
No exploitation has been reported, no weaponized exploit observed, and the CVE is not in CISA’s KEV catalog. Caveat: the attack looks like a normal kit update and the logs would not have shown a key being injected, so absence of reports is weaker evidence than usual.
Do I need to rotate all my keys?
Rotate keys whose kit changed after you approved it, and any key you cannot account for. Upgrade to 0.55.0 first, review your stored approvals, and scope future keys to single sandboxes where possible.
Does the fix stop a kit from changing at all?
It stops the demonstrated attack: a kit requesting a domain outside your approved list now prompts again, and key injection requires HTTPS. Binding approval to the kit’s content digest was requested but is not confirmed in the 0.55.0 release notes.
The Bottom Line
CVE-2026-136998 is a small bug with a large lesson. Docker built the right prompt, chose the safe default, and wrote your decision to disk — then shipped a proxy that never read it. One honest approval became a standing permission for whatever a kit later decided to become, and the logs could not have told you. The 0.55.0 fix enforces the approved destinations and requires HTTPS for key injection, which closes the demonstrated leak. What remains open is the deeper question: approval should be bound to the artifact you inspected, not to a service name a future update can inherit. Until every tool in this category answers that question, the operational rules are yours to enforce — upgrade promptly, pin what you run, scope every key, and re-read a kit’s destinations whenever it changes.
Sources: Endor Labs technical analysis of CVE-2026-136998 by Peyton Kennedy (November 30, 2026); CVE record for CVE-2026-136998, CNA Docker Inc. (updated December 1, 2026); Docker Sandboxes release notes for v0.43.0, v0.51.0, and v0.55.0; The Hacker News (December 1, 2026). All facts checked December 3, 2026.



[…] into an exfiltration target. We covered the same failure mode from the sandbox side in Docker Sandboxes CVE-2026-136998: One Approval Was Enough to Steal Your AI API Keys — one approval was enough because the secret was sitting in the environment, readable by design. […]