CVE-2026-136998: Docker Sandboxes flaw leaks AI API keys, fixed in 0.55.0
A third-party agent kit approved once could later redirect a developer's real Anthropic, OpenAI or GitHub key to an attacker's server; upgrade to sbx 0.55.0 and review kit approvals.
· 9 min read
Written by AI from the sources linked below. How we use AI
On this page
Docker has fixed CVE-2026-136998, a flaw in Docker Sandboxes (the sbx command-line tool and its sandboxd daemon) that let a third-party AI agent kit send a developer's real provider API key to an attacker's server after a later update. The developer approves the kit once, the kit author later changes one destination line, and the host-side proxy that is supposed to keep keys away from the agent injects the real key into requests to the new address, with no new prompt. Endor Labs researcher Peyton Kennedy found it. The fix is Docker Sandboxes 0.55.0, released on 30 November 2026.
Key points
- CVE-2026-136998 is an incorrect-authorization flaw (CWE-863) in Docker Sandboxes; the consent system that contains it was added in version 0.43.0, and it is fixed in 0.55.0, released 30 November 2026.
- A kit approved once can later change where the credential is sent; the proxy injects the real key at the new destination without asking again.
- Endor Labs scores it CVSS 3.1 8.2 (High) and CVSS 4.0 6.9 (Medium); Endor says Docker's own CVSS 4.0 score is 5.6 (Medium), a figure reported by The Hacker News.
- Thirteen built-in services share the same injection path; only Anthropic was demonstrated, and with a dummy key. No real-world attacks have been reported.
- If you cannot upgrade yet: remove bindings for third-party kits from
~/.config/sbx/credentials.yaml, pin kits to a fixed commit, and rotate keys behind any third-party kit that changed after you approved it.
What to do
Who is affected. Anyone who runs Docker Sandboxes with a version from 0.43.0 up to but not including 0.55.0 and who has approved a third-party agent kit that asks for a credential for a built-in service. Endor Labs lists thirteen services: anthropic, copilot, cursor, devin, droid, github, google, groq, mistral, nebius, openai, openrouter and xai. The Hacker News reports the flaw on macOS, Windows and Linux. Endor Labs tested a macOS 15.6 arm64 build. Versions before 0.43.0 do not have this particular defect, though Endor says it did not assess other credential questions for them.
The fix. Upgrade to Docker Sandboxes 0.55.0 or later. Check what you run with sbx version. According to the 0.55.0 release notes as summarised by The Hacker News, kit credential injection now enforces the approved destinations for API keys and OAuth separately, and a binding with no approved destinations counts as missing.
Until you have upgraded, or as clean-up afterwards:
- Open
~/.config/sbx/credentials.yaml(on Windows%APPDATA%\sbx\credentials.yaml) and delete bindings that were granted to third-party kits. - On every
sbx create, not just the first, review the kit's inject domains and itspermissions.network.allowentries. - Pin kit sources to a fixed commit, or keep a reviewed copy in a local folder, where the kit source allows it.
- Store keys per sandbox with the
--sandboxflag instead of globally, because a global key is reachable by any binding. - Rotate the provider keys behind any approved third-party kit that changed after you approved it. For a GitHub token, also check the token's scopes and recent activity.
How to check whether you were affected. Docker's policy log will not tell you. Endor Labs says sbx policy log records the connection as allowed but does not show that a credential was injected. So the practical check is to ask whether you approved any third-party kit that declares a credential, whether its source reference (a tag, a branch or a directory) could have been changed since, and whether the kit's inject domain today still matches what the approval prompt showed.
What happened
Docker Sandboxes runs coding agents inside microVMs. The point of the design is that the agent never holds a real secret. A user stores a key on the host with sbx secret set. Inside the sandbox the agent sends requests with a placeholder header, and a proxy on the host swaps in the real key, but only for destinations the key is approved for. Each kit has an inject block listing, per service, the domains where the proxy may do that substitution.
Third-party kits are fetched by reference and can declare credentials for the built-in services. Version 0.43.0 added a consent gate for this: the default is to decline, and on an interactive terminal sbx create shows each requested credential with its domains. Approving writes a binding to ~/.config/sbx/credentials.yaml.
Endor Labs' write-up describes four problems that combine into the flaw:
- The domain list in the binding is written to the file but never read at request time.
- The gate is keyed only on the service name. If any binding exists for, say, anthropic, the proxy injects the real key at whatever domains the current kit declares.
- The binding is not tied to a particular kit by name, content digest or source, so approval for one version carries over to later versions at the same reference. Endor says it demonstrated only the version-swap case, but notes the approval could also carry over to other third-party kits declaring the same service.
- Network allowlist entries in a kit are applied without a prompt, so a new version can also open a route to the attacker's host.
Endor Labs' attack walk-through runs in five steps. The attacker publishes kit version 1 whose inject block names only a legitimate provider domain such as api.anthropic.com. The developer runs sbx create, sees an accurate prompt and approves. The attacker publishes version 2 at the same reference, changing the inject domain to a host they control. The next sbx create finds an existing binding for the service and proceeds without a prompt. The proxy then substitutes the real key into requests to the attacker's host. The approval even survives deleting the sandbox, because the binding lives in the host's configuration file.
For the proof of concept the researcher used a dummy credential, a canary HTTP server on loopback and a hostname that resolves to 127.0.0.1. The canary received the key in cleartext. As a last check he rewrote the binding's domain list to an unrelated value and the leak still happened, which confirmed that the recorded list has no effect.
Endor Labs stresses what did not fail. The microVM isolation held; the keys were redirected by a decision of the host-side proxy. A kit cannot impersonate a built-in agent by name, a mixin kit cannot add inject domains for built-in services, sbx kit add refuses kits that declare credentials, and non-interactive runs decline by default.
Background
This is the second Docker Sandboxes finding from the same researcher. Per Endor Labs' timeline, he reported both bugs to Docker on 21 September 2026 (tracked as ENDOR-VUL-2026-21091 for this one). The first, CVE-2026-103916, involved sbx cp resolving file paths outside the folders a sandbox was allowed to reach. Docker shipped the fix for that in version 0.51.0 on 3 November 2026. This one followed in 0.55.0 on 30 November, the day Endor published its write-up; The Hacker News says Docker published the CVE record on 1 December. That is about ten weeks from report to fix. Endor's own summary of the pair is that both issues stem from consent decisions that were not bound to the thing the user had actually been shown.
The Hacker News dates the consent system, and so the flaw, to version 0.43.0, released on 15 September. Endor Labs itself gives only the version number and says the check was introduced with the consent gate.
Sandboxes of this kind exist because coding agents run code and handle credentials on developer machines. Keeping the real key outside the agent's reach is the core promise, so a bug in the proxy's consent logic hits the product where it is meant to be strongest.
How it works
The weakness is easiest to see as a mismatch between what the user approves and what the proxy enforces.
| Step | What the user sees | What the proxy checks |
|---|---|---|
First sbx create |
A prompt naming the credential and its domains | Writes a binding: service name plus domains |
Later sbx create after a kit update |
Nothing | Whether a binding exists for the service name |
| A request from the sandbox | A placeholder header | Substitutes the real key at the domains the current kit declares |
The domain list recorded at approval time is the part nothing reads back. Endor Labs notes that the binary contains a function named MissingDomainsForService, which matches the missing check, but that it does not appear to gate the runtime path.
Scope grows because of a default: sbx secret set stores credentials globally. A single redirected key is therefore the one every sandbox on the machine would use.
On severity, Endor Labs scored it 8.2 (High) under CVSS 3.1 with a local attack vector, because the malicious kit is a fetched artifact and the daemon listens on a local Unix socket. It first scored the vector as network, which would have been 9.3 (Critical), and corrected it before submission. The CVSS 4.0 score is 6.9 from the researcher; The Hacker News reports 5.6 from the vendor. Both are Medium. User interaction is required (one approval and a later sbx create), which is why the scores are not higher.
What it means
For developers using agent sandboxes. The attack needs no compromise of the machine, no TLS interception and no network position. It needs one approval and a changed line in a kit's configuration. The practical lesson is the one Endor Labs gives: a prompt is only as strong as what its answer is bound to. Treat third-party kits like dependencies: pin them to a commit, review updates, and do not rely on the first prompt to cover every future version. Per-sandbox keys narrow the damage.
What a stolen key is worth. For model providers, the cost is metered API access billed to the victim. For GitHub, it is whatever the token's scopes allow, which Endor says for a typical developer token can include write access to repositories.
For Docker and similar products. The fix enforces approved destinations at request time. Endor Labs also proposed tying approval to the kit's content digest and logging each key injection in sbx policy log. The Hacker News reports that the release notes mention neither, so those remain open as far as the public notes show.
Who carries the risk. The conditions depend on third-party kits, so people who only use first-party agent setups are less likely to meet this particular path; users of kits published through mutable references (tags and branches) are the ones exposed to later changes.
What we don't know yet
- Whether anyone exploited this before the fix. Both Endor Labs and The Hacker News say no real-world attacks have been reported.
- Whether Docker's cloud sandboxes share the affected logic. The Hacker News says they use a separate secret store and that this is not established either way.
- Whether the thirteen services all behave identically in practice. Endor says they share the injection path but tested only Anthropic, with a dummy value.
- The exact release date of 0.43.0: only one source gives it.
- Whether Docker will add digest binding and injection logging. Neither appears in the release notes as summarised.
What to watch next
Watch Docker's Sandboxes release notes and security advisories for digest-bound approvals, injection logging and any statement on cloud sandboxes. The wider question applies to every agent-sandbox tool: does an approval still apply after the thing approved has changed?
Sources
- Endor Labs: CVE-2026-136998, Docker Sandboxes vulnerability lets malicious AI agent kits steal developers' API keys (primary, researcher write-up)
- The Hacker News: Docker Sandboxes flaw lets malicious AI agent kit updates steal developers' API keys
- BleepingComputer: Docker Sandboxes bug could leak AI API keys via malicious updates (the page did not open for us; we link it as the report that prompted this article and did not rely on its text)
Written by
The official account of the people who run audiotale.net: announcements, conversation starters and the newsroom's drafts. Posts written with AI say so. Every other account here is a real person.
Read next
Malicious GGUF models on Hugging Face: 5 repos, 2,428 downloads, how to check
A researcher says two campaigns hid a Windows implant and an agent trigger in GGUF files; the figure is downloads, not victims, and only one outlet has reported it.
audiotale.net team8 min read

Anthropic's lattice papers: quantum attack on ML-KEM math is galactic, not practical
Anthropic published four lattice-cryptography papers on 30 November; independent cryptographers and Cloudflare say no ML-KEM or ML-DSA deployment is at risk.
audiotale.net team8 min read
CIRG: 21 cryptographers launch review group as AI encryption rumours spread
The Cryptography Incident Review Group went public as rumours of an AI cryptography breakthrough circulated; the only documented result so far is a July attack on HAWK.
audiotale.net team7 min read