On this page
One yes from a developer was all a third-party kit for Docker Sandboxes needed. After that yes, an update to the kit could send the developer's real Anthropic, OpenAI or GitHub key to a server of the kit author's choosing. No new prompt appeared. The log showed an ordinary allowed connection, and said nothing about a key going out with it.
Discovered by Peyton Kennedy from Endor Labs, and disclosed to Docker on September 21, 2026. The fix came in Docker Sandboxes 0.55.0, released on November 30, 2026. CVE-2026-136998 is the number, and the class is incorrect authorization, CWE-863.
How the approval worked
Docker Sandboxes rests on a promise: raw API keys never enter the sandbox where the AI agent runs. The key is stored on the host by the developer. So the agent (which is on the inside) sends requests with a placeholder, and when the request goes to an approved location, the proxy on the host replaces the placeholder with the actual key.
In the kit (packaged configuration an agent runs with) you specify where the real key for each service will go to. A consent prompt for third-party kits arrived in version 0.43.0, released September 15, 2026. When a kit asked for a credential, the developer saw the service and the domains the key would be sent to. Approving wrote those domains to a file on the machine, ~/.config/sbx/credentials.yaml.
And that written list never got looked at again. When a request went out, the proxy asked only one question: whether an approval existed for that service name. You never checked the target against domains that the developer actually approved. So you could push an update with the kit pointing to api.anthropic.com that pushed the update out to your own host, and you'd get the actual key through the proxy? Again with no prompt, the same update could add that host to the sandbox's network allowlist. And it got logged in sbx policy log that the connection was permitted, without any indication that a credential had been injected into the connection.
Who and what it covers
Every Docker Sandboxes release from 0.43.0 up to the fix in 0.55.0 carries the flaw. The same injection path is shared by all thirteen built-in services: Anthropic, OpenAI, GitHub, Google, Copilot, Cursor, Devin, Droid, Groq, Mistral, Nebius, OpenRouter and xAI. By default they are global keys so the key a kit can redirect is the same key each sandbox on the machine is using. Usage billed to the victim is what a stolen AI provider key means. Stolen github token might grant access to victim's repositories with write permissions.
Kennedy did it, using a bogus Anthropic key with a test server set up on his machine. The other twelve services follow the same code path. They were not demonstrated one by one. It's not in CISA Known Exploited Vulnerabilities and there is no known exploitation in the wild.
Who is not in scope
A developer who never approved a third-party kit's request for a credential has no approval for a kit to reuse. In versions before 0.43.0, the approval thing doesn't exist at all. When kits installed through sbx kit add declare credentials, they are refused, and a run with no terminal declines rather than proceeding, with no --yes flag to override it. One approval is all the exposure needs, given to a kit that later changes.
One check to run now
Open ~/.config/sbx/credentials.yaml.
Every service listed there's a standing approval from the day you granted it. Compare, for each one, the domains written in that file with the domains the kit asks for today, in its current version. Treat the matching key as exposed if a kit has updated since you approved it, or its destinations no longer match the ones in the file: rotate it at the provider, then remove that approval row from the file. Don't rely on sbx policy log for this. A clean log proves nothing either way, because the log never recorded the key going out.
What this is not
A sandbox escape is not what this is. The isolation held. Raw keys still never enter the sandbox itself. Because the kit got to decide where the host sent it, the key never had to enter the sandbox. It's also not an attack on a machine that never touched the attacker's kit: the attacker needs a developer to approve a clean-looking kit once, while its prompt still tells the truth, and then to run its changed version later.
Two scores, and they do not agree
Kennedy finds that it's 8.2 High CVSS 3.1 and 6.9 CVSS 4.0. Docker, the CVE assigning authority here, scores it 5.6 Medium on CVSS 4.0. What a stolen key does next is where the gap sits: the researcher's scoring counts a heavy impact at the provider account the key opens, and Docker's counts none of that. The practical step is the same under either score, and both scores are on the record.
How to fix
Move Docker Sandboxes to 0.55.0 or later. That's the fix, and it's already out. Exposures are whatever approvals they have on file until upgrade to the machine. Remove any approval you granted to a third-party kit from ~/.config/sbx/credentials.yaml, as described in the check above. Read every run all destination credentials in the kit and all network allow entries. On the older versions, it won't tell you that they've changed since the first run. Where the kit source allows it, fetch a fixed commit instead of a tag or a branch, so an update can't arrive silently under the same name. Where you can, set keys per sandbox. If a key is provided with --sandbox, you're restricting what's available to a redirected approval (a global key is the one that every sandbox uses). If it's a third party kit that you've approved and it has been modified since the approval, change the keys used by the provider it can access. Patching stops the redirect from here on. It does not call back a key that already went out.
HOL assessment
Our assessment: this flaw hits developers who did the careful thing once, approving a kit while its prompt still told the truth, and then trusted that answer to stand. The key never enters the sandbox and the isolation holds, so the argument over the score misses the point: a global key sent to a stranger's server is gone at full value, whichever number a scorer gives the redirect. Nothing in the record shows the trick used in the wild, and the fix in 0.55.0 stops it from here, so the standing approvals already on a machine are the real exposure, and the comparison against credentials.yaml is the first move that matters.
Sources
Endor Labs, CVE-2026-136998: Docker Sandboxes vulnerability lets malicious AI agent kits steal developers' API keys: https://www.endorlabs.com/learn/cve-2026-136998-docker-sandboxes Docker, CVE-2026-136998 record: https://www.cve.org/CVERecord?id=CVE-2026-136998 Docker Sandboxes 0.55.0 release notes: https://github.com/docker/sbx-releases/releases/tag/v0.55.0
FAQ: I approved a third-party kit once.
Does this apply to me? You are exposed if that approval is still in ~/.config/sbx/credentials.yaml and the kit has changed since you approved it, or you can't tell whether it changed. Rotate the key for any service where the kit's current destinations differ from the domains in the file, or the kit's history is unclear, after upgrading to 0.55.0 and comparing them.
FAQ: How do I fix CVE-2026-136998?
Move Docker Sandboxes to 0.55.0 or later. Then review the approvals saved in ~/.config/sbx/credentials.yaml: remove approvals granted to third-party kits, and rotate any provider key a changed kit could have redirected.