A Docker Sandboxes vulnerability let an updated third-party kit send a developer's real API key to a new server without asking again.
Docker fixed the bug, tracked as CVE-2026-136998, in Docker Sandboxes 0.55.0, released on November 30.
Every version from 0.43.0 up to the fix is affected on macOS, Windows and Linux, and no attacks have been reported.
Developers should upgrade, remove approvals granted to third-party kits and rotate any key tied to a kit that later changed.
Quick read · 1 min
Docker has fixed a flaw in Docker Sandboxes, its tool for running AI coding agents in isolated virtual machines, that could leak your real API keys. Once you approved a third-party agent kit, a later version of that kit could point Docker's proxy at a new server, and your Anthropic, OpenAI or GitHub key would be sent there with no prompt. The logs showed nothing unusual.
The bug, CVE-2026-136998, affects every version from 0.43.0 until 0.55.0, which shipped on November 30. No attacks have been reported.
Upgrade to Docker Sandboxes 0.55.0.
Remove approvals you gave to outside kits in your credentials.yaml file.
Rotate keys behind any kit that changed after you approved it.
Check the upgrade notes first: version 0.55.0 also ignores some old environment variables and only adds keys to HTTPS requests.
The Docker Sandboxes vulnerability disclosed this week turns a one-time yes into a standing permission slip. If you approved a third-party agent kit even once, a later version of that kit could tell Docker’s own proxy to deliver your real Anthropic, OpenAI or GitHub key to a server run by an attacker, with no new prompt and nothing alarming in the logs.
The fix is already out. Docker shipped it in Docker Sandboxes 0.55.0 on November 30, and the bug is tracked as CVE-2026-136998. If you run AI coding agents inside Docker Sandboxes, upgrade today, then clean up the approvals you gave to outside kits. A stolen model key can run up charges on your account, and a stolen GitHub token can reach whatever repositories it was allowed to touch.
01
What the Docker Sandboxes vulnerability actually does
The flaw lets a changed kit redirect your stored credentials to a new destination, because Docker checked the service name and ignored the domains you approved. To see why that matters, it helps to know how the product is meant to work.
Docker Sandboxes runs coding agents such as Claude or Codex inside small, isolated virtual machines on your computer. The selling point is that your raw API keys (the secret strings that let software bill your account at an AI company) never enter that virtual machine. You save a key on your own computer with sbx secret set. The agent inside the sandbox only ever sees a stand-in value. When it calls out to the internet, a proxy running on your computer swaps the stand-in for the real key on the way out.
A kit is a packaged agent setup that tells the sandbox which services it needs and where its requests should go. Kits can come from a registry, a Git reference or a folder on your disk. Since version 0.43.0, which arrived on September 15, approving a kit’s request for a credential writes a record called a binding. That record lists the service and the domains you agreed the key could be sent to.
Here’s the catch. That list of approved domains was never consulted. When a request went out, the proxy only asked whether a binding existed for the service, then handed the real key to any address the latest kit release listed. In the researcher’s words, the domains you approved played no part in the decision.
02
How a kit update could steal your key without a prompt
An attacker who publishes a kit people trust only needs one approval and one edited line in a later release. The research team at application security firm Endor Labs showed it with a harmless dummy Anthropic key and a test server on their own machine.
They approved a kit whose only destination for the key was Anthropic’s API address.
They then swapped in a new version of the kit at the same reference, pointing at a test server instead.
The next time a sandbox was created, no prompt appeared, and the proxy delivered the dummy key to the test server in plain text.
The approval stuck around even after the sandbox itself was deleted.
The logs didn’t help either. Docker’s policy log showed the connection as an allowed request and gave no sign that a credential had been injected into it, so a developer checking afterward would see nothing unusual. On top of that, a rogue release was able to slip an extra server onto the list of places the sandbox may reach, again with no question asked.
Some protections did hold. In the testing, a kit could not pose as one of Docker’s built-in agents, and the consent prompt still defaulted to decline. The virtual machine wall stayed intact; the weak point was what your approval was attached to.
03
Which versions and services are affected
Every Docker Sandboxes release from 0.43.0 up to, but not including, 0.55.0 is affected, on Mac, Windows and Linux alike, according to the CVE record Docker published. No attacks using the flaw have been reported so far.
Thirteen built-in integrations share the code path that injects keys. Among them are GitHub, Google, OpenAI and Anthropic, along with coding tools such as Cursor, Copilot and Devin, and model hosts including Groq, Mistral and xAI. Only the Anthropic path was tested with a live demonstration, using a fake key.
The research covered the local version of the product. Cloud sandboxes keep a separate secret store, and it hasn’t been established whether they ever used the same flawed authorization logic.
Severity scores vary depending on the scale used. The researcher puts it at 8.2, or High, under CVSS 3.1, after first rating it 9.3 and then lowering it because the attack needs a file the developer fetches rather than a service reachable over the network. Under the newer CVSS 4.0 scale, his score is 6.9 and Docker’s own is 5.6, both Medium. The gap comes down to whether damage to the AI account behind a stolen key counts toward the base score.
04
What this means if you code with AI agents
The attack needs a third-party kit that you approved, so if you have only ever used Docker’s built-in agents, upgrading is the main job. If you did approve outside kits, treat any key those kits could reach as possibly seen by someone else.
The blast radius is wider than one sandbox. By default, a key you save with sbx secret set is shared by every sandbox on your machine, which means one redirected key is the key all of them rely on. For a typical developer, a GitHub token often carries write access to their repositories, so a thief could change code, not just read it. A leaked model key mostly means someone else running up your bill.
This is also the second bug in the product from the same researcher within a month. Both were reported to Docker on September 21. The first, a file-copy flaw that let an agent reach host files outside its approved folders, was fixed on November 3.
How to fix it: upgrade, audit approvals, rotate keys
Upgrading to 0.55.0 closes the hole. Docker’s release notes say kit credential injection now honors the destinations you approved for API keys and for OAuth sign-ins separately, and treats a binding with no approved destinations as if it didn’t exist. Then work through these steps:
Open your approvals file. On Mac and Linux it lives at ~/.config/sbx/credentials.yaml, and on Windows at %APPDATA%\sbx\credentials.yaml. It stores approvals, not the keys themselves.
Delete bindings for third-party kits you don’t actively need. You can approve them again later, this time with the fixed version checking destinations.
Rotate keys behind any outside kit that changed after you approved it. Generate a new key at the provider and revoke the old one.
Scope secrets to one sandbox. Use the –sandbox flag with sbx secret set so a key is available only where it’s needed. Sandbox-scoped secrets take priority over global ones.
Pin kits. Where the source allows it, tie a kit to one specific commit, or store a copy you have checked on your own disk, so an upstream edit can’t slip in.
Read a kit’s domains every time. Check its injection domains and network allow entries on each sbx create, not only the first.
The researcher also asked Docker to tie approvals to the exact contents of a kit and to log every key injection. The published release notes confirm the destination check but don’t mention those two requests.
06
Before you upgrade: four changes in 0.55.0 that can break your setup
Version 0.55.0 tightens more than kits, and a few changes can trip up existing workflows. Plan for these before you install it.
Some environment variables stop working. The release no longer reads a set of override variables. Save each one you rely on with sbx settings set first. For example, if you require signed kits through a variable, set kit.requireSignature to true before upgrading, or signatures become optional again.
Keys only go out over HTTPS. Host-managed keys, OAuth tokens and custom secrets are no longer added to plain HTTP requests, and OAuth token exchanges over HTTP are refused with an HTTP 403 error. Switch any endpoint URLs to HTTPS.
Broad workspaces may be blocked. New workspace paths that overlap the tool’s own config, state or credential folders are rejected, and a whole home folder can trigger that. Pick a narrower project folder, or deliberately set mounts.allowSensitiveState to true if you really mean it.
Short custom secrets stop working. Custom secrets now need at least eight characters. Built-in provider keys are exempt.
One more quirk: if you signed in to Claude, Codex, Cursor, Droid or OpenCode inside an older sandbox while running version 0.51 or later, you’ll need to sign in once more after upgrading.
07
Quick answers
Which Docker Sandboxes versions have the vulnerability?
Every release from 0.43.0 up to the fix is affected, on Mac, Windows and Linux. Version 0.55.0 closes it.
Do I need to rotate my API keys?
Rotate any key that a third-party kit could use if that kit changed after you approved it. If you only use built-in agents, upgrading is the key step.
Has anyone exploited CVE-2026-136998?
No attacks using the flaw have been reported. The researcher demonstrated it only with a dummy key on a test server.