Docker Sandboxes, Docker’s tool for running AI coding agents inside isolated microVMs, could pass a developer’s stored Anthropic, OpenAI or GitHub credential to a server picked by an attacker, without any new prompt. Peyton Kennedy of Endor Labs explains the bug, tracked as CVE-2026-136998, in a technical write-up: a third-party agent kit that a user had approved once could later change the host that receives the key. The sbx releases from 0.43.0 up to 0.54.x are affected, and Docker fixed the flaw in 0.55.0 on 30 November. Nobody has reported attacks using it so far.
The approval was saved, then ignored
The design is meant to keep raw secrets out of the sandbox. Keys live on the host, the agent in the microVM only sends a placeholder header, and a proxy on the host swaps in the real value when a request goes to an allowed API. Since version 0.43.0, a kit from outside Docker has to ask for consent first, and sbx writes the answer to ~/.config/sbx/credentials.yaml as a binding: the service name plus the domains the user agreed to.
According to Endor Labs, that list of domains was recorded but never checked again. When a sandbox started, sbx only looked for an entry under the service name, then injected the key wherever the current version of the kit pointed. An attacker could therefore publish a harmless kit, collect a truthful approval, and push a second version under the same tag or branch that names a different host. The next sbx create raised no prompt and showed no diff, the kit could also open network access to that host on its own, and sbx policy log recorded nothing more than a permitted connection.
Kennedy proved it with a dummy Anthropic key and a local test server. The other twelve built in services (Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter and xAI) share the same code path but were not tested one by one. Because sbx secret set stores a key globally unless told otherwise, the exposed credential is the one every sandbox on the machine uses: metered model access that the victim pays for, or a GitHub token that often can push to repositories. Kennedy sums up the lesson: “a prompt is only as strong as what its answer is bound to.”
Docker and the researcher score it differently
Endor Labs rates the flaw 8.2 (High) under CVSS 3.1 and 6.9 under CVSS 4.0. Docker, which issued the CVE, puts 5.6 (Medium) under CVSS 4.0 in the official record, and the CISA enrichment on that record marks exploitation as none and the attack as not automatable. Both views fit the facts: the attacker needs a kit you already trust and a second launch by you, which rules out mass scanning, but the payoff is a real, reusable key. We list it as high on our hub because what leaks is the credential itself, not a session that expires.
What to check on your machine
- Version: run
sbx version. Anything from 0.43.0 to below 0.55.0 is affected; update to 0.55.0 or later. Builds older than 0.43.0 lack the binding feature entirely, so this bug does not apply, but Endor did not assess how they handle credentials. - Before you update: the 0.55.0 release notes say the CLI stops reading several environment variables, among them
DOCKER_SANDBOXES_KIT_REQUIRE_SIGNATUREandDOCKER_SANDBOXES_KIT_ALLOWED_SOURCES. If you used them to require signed kits or limit kit sources, save them withsbx settings set kit.requireSignature true(andkit.allowedSources) first. Otherwise, per Docker, signatures become optional and local kits are allowed again. - Bindings: open
credentials.yaml(on Windows%APPDATA%\sbx\credentials.yaml, see Docker’s credentials docs) and delete entries you granted to third-party kits you no longer use. Each one stays valid for whatever that kit reference serves next. - Keys: if you approved a community kit whose source has changed since, rotate the affected provider keys and GitHub tokens, then look at the provider’s usage and billing pages for traffic you do not recognise.
- Scope: set keys per sandbox with
sbx secret set <service> --sandbox <name>and pin kits to a fixed commit instead of a branch or tag where you can.
Version 0.55.0 also stops sending host credentials over plain HTTP; Endor’s test used an unencrypted request, which this change would now block, though an attacker with an HTTPS endpoint would not be stopped by it alone.
One step further: a 76 day window and a key that keeps its value
By our check of the sbx release history, version 0.43.0, the release that added the consent gate and with it the flaw, went out on 15 September 2026. The fix shipped on 30 November, so affected builds were current for 76 days. Endor reported the issue on 21 September, which leaves 70 days between report and patch. It is also the fourth CVE for Docker Sandboxes we found since mid September: CVE-2026-77179 and CVE-2026-79994 (fixed in 0.42.0), CVE-2026-103916 (an earlier Kennedy finding in sbx cp, fixed in 0.51.0) and now this one. The product is young and is being hardened in public, so update speed matters more than with mature tools.
Who pays when an AI key leaks goes well beyond the developer:
- Whoever holds the billing account: Sysdig, which coined the term LLMjacking, put the worst case for one set of stolen cloud model credentials at more than $46,000 per day (its 2024 Claude 2 example on Amazon Bedrock). By our calculation, a key abused at that rate from Friday evening to Monday morning, about 60 hours, would run up roughly $115,000 before anyone looks. Real bills depend on the provider’s rate limits and spending caps.
- Employers and security teams: GitGuardian’s State of Secrets Sprawl 2026 counted 1,275,105 leaked secrets for AI services in public GitHub commits in 2025, up 81 percent in a year, and found that 64 percent of valid secrets leaked in 2022 were still not revoked in 2026. A redirected sbx key is invisible to that kind of scanning because it never touches a repository, so rotation after this patch is a manual job.
- The agent plugin ecosystem: the same GitGuardian report found 24,008 unique secrets in the MCP configuration files it studied. Kits, MCP servers and agent plugins are fetched by reference much like packages, and an approval that is not tied to a specific version turns every update into a trust decision nobody sees.
Still open: whether any public kit changed its inject domains while the bug was live, whether Docker will log credential injection as Endor proposed, and whether the cross kit variant Kennedy described but did not test works the same way. More cases are on our AI sandbox security tracker, including how LLMjacking turns stolen keys into cloud AI bills and how a coding agent’s leaked key exposed Together AI customer prompts.
How we checked
Checked on 1 December 2026, 23:23 CET.
- Read Endor Labs’ write-up, Docker’s security announcement, the 0.55.0 release notes, Docker’s credentials documentation and the CVE record for CVE-2026-136998 (including the CISA enrichment).
- The 76 and 70 day windows come from our comparison of the GitHub release dates for 0.43.0 and 0.55.0 with Endor’s disclosure timeline; the list of four Docker Sandboxes CVEs comes from our lookup of each CVE record.
- The weekend cost estimate is our own arithmetic on Sysdig’s published $46,000 per day worst case; GitGuardian figures are taken from its March 2026 report announcement.
- We did not run a malicious kit or test the fix ourselves.



