News
A Docker Sandboxes kit update could send API keys to a new server after one approval (CVE-2026-136998).
Docker Sandboxes before version 0.55.0 kept a developer's approval of a third-party agent kit even after that kit changed where keys were sent. Endor Labs showed a dummy key leaving in cleartext to a test server, with no second prompt. Docker fixed it in 0.55.0. No attacks using the flaw have been reported.

Impact
- What was impacted
- CVE-2026-136998 in Docker Sandboxes on macOS, Windows, and Linux, from version 0.43.0 (September 15, 2026) through every release before 0.55.0. After one approval, a later update to a third-party agent kit could name new domains, and the host proxy would inject the real API key into requests to those domains. The domains the developer had approved were saved and never checked again. The researcher rates it 8.2 High under CVSS 3.1, as a local issue, after first scoring it 9.3. Under CVSS 4.0 he scores it 6.9 and Docker scores it 5.6, both Medium. The demonstration used a dummy key on his own test server. No attacks have been reported.
- Who was impacted
- Developers who store Anthropic, OpenAI, GitHub, Google, or other provider keys with sbx secret set and have approved a third-party kit. Those secrets are global by default, so a redirected key is the one every sandbox on that machine uses. Thirteen built-in integrations share the injection path. The test covered Anthropic with a dummy value. A stolen GitHub token grants whatever scopes it has, which the researcher says for a typical developer token includes write access to repositories. Cloud sandboxes use a separate secret store, and it is not established whether they shared this logic. A kit could not impersonate a built-in agent in his testing, and the consent prompt still defaults to decline.
- What you need to do
- Upgrade Docker Sandboxes to 0.55.0. That release enforces the destinations approved for API keys and for OAuth separately, and treats a binding with no approved destinations as missing. If a third-party kit was approved on an older version, review ~/.config/sbx/credentials.yaml, or %APPDATA%\sbx\credentials.yaml on Windows, and remove those bindings. The file records approvals, not key values. Then rotate the provider keys behind any third-party kit that changed after it was approved. Pin kits to a fixed commit where the source allows it, or keep a reviewed local copy. Read the kit's inject domains and permissions.network.allow on every sbx create, not only the first. Prefer per-sandbox keys with the --sandbox flag.
Docker Sandboxes runs AI coding agents inside isolated virtual machines and is built so the raw API key stays on the host. The developer stores a key with sbx secret set. The agent inside the virtual machine sends requests with a placeholder header, and a proxy on the host inserts the real key on the way out. Which destinations receive that key is decided by a kit, a packaged agent configuration fetched from a registry, a Git reference, or a local folder. Since version 0.43.0, released September 15, 2026, approving a kit's credential request writes a binding that records the service and the domains the developer agreed to. Endor Labs researcher Peyton Kennedy found that the recorded list was never read back. At request time the check only asked whether a binding existed for the service name, and the proxy then sent the real key to whatever domains the current version of the kit named. He wrote that the domains the operator approved play no part in that decision. The flaw is CVE-2026-136998. Docker's CVE record, published December 1, 2026, says it affects every version before 0.55.0 on macOS, Windows, and Linux, and that the consent system added in 0.43.0 introduced it. Docker fixed it in 0.55.0 the day before this report. Kennedy demonstrated it with a dummy key and a test server on his own machine. No attacks using it have been reported.
In the test, a kit approved with api.anthropic.com as its only destination was replaced at the same reference with a version that pointed at his test server. The next time a sandbox was created there was no new prompt, and the proxy delivered the dummy key to that server in cleartext. The approval remained after the sandbox was deleted. The policy log recorded the connection as allowed and said nothing about a key being injected. He also found that a malicious kit version could add its own server to the sandbox's network allowlist without a prompt. Thirteen built-in integrations share this key-injection path, including Anthropic, OpenAI, GitHub, and Google. He tested one of them, Anthropic, with a dummy value. Other checks held: a kit cannot impersonate a built-in agent, and the consent prompt still defaults to decline. The attacker does not need access to the developer's computer. The researcher describes it as one approval, then a single changed line in the kit's next version. He first scored the flaw 9.3 Critical and then corrected the attack vector to local, because the malicious kit is a file the developer fetches rather than a service an attacker reaches over the network, for a CVSS 3.1 score of 8.2 High. Under CVSS 4.0 his score is 6.9 and the vendor's is 5.6, both Medium. The two scores differ on whether harm to the provider account behind a stolen key counts in the base score.
Secrets stored with sbx secret set are global by default, so a redirected key is the one every sandbox on the machine uses. A stolen GitHub token grants whatever its scopes allow. Kennedy says a typical developer token includes write access to repositories. The research covered the local product. Cloud sandboxes keep a separate secret store, and it has not been established whether they ever shared the affected authorization logic. This is his second bug in the product within a month. Both were reported to Docker on September 21, 2026. The earlier one was a file-copy flaw that let an agent read host files outside its approved folders, and it was fixed on November 3, 2026. That November fix is not this bug. In both cases he says the virtual-machine boundary held, and the failure was what the developer's approval was attached to. He asked Docker to tie approvals to a kit's content digest and to record every key injection in the policy log. The 0.55.0 notes confirm the destination check and do not mention those two changes.
Upgrading to 0.55.0 removes the flaw. The release notes say kit credential injection now enforces the destinations approved for API keys and for OAuth separately, and treats a binding with no approved destinations as missing. For machines still on older versions, and for anyone who granted credentials to a third-party kit while the flaw was present, Kennedy's steps are to review the approvals file and remove bindings granted to a third-party kit, to read the kit's inject domains and its permissions.network.allow entries on every sbx create, to pin kits to a fixed commit where the source allows it or keep a reviewed copy in a local folder, to store keys per sandbox with the --sandbox flag instead of globally, and to rotate the provider keys behind any approved third-party kit that later changed. The approvals file is ~/.config/sbx/credentials.yaml, or %APPDATA%\sbx\credentials.yaml on Windows. It records approvals, not key values.
For your AI agent
Agent instructions — copy paste to Claude
You are helping me respond to CVE-2026-136998 in Docker Sandboxes. Versions from 0.43.0 (September 15, 2026) through every release before 0.55.0 could send a real API key to domains named by a later update of a third-party kit the developer had approved once. The saved domain list was not checked again. Endor Labs demonstrated it with a dummy key and a private test server. No attacks have been reported. Docker fixed it in 0.55.0 the day before the December 1, 2026 report. Do not build a malicious kit, do not point a kit at an external server, and do not print secret values. Ask before you upgrade the tool, delete an approval, or rotate a key. Facts from the report: - Docker Sandboxes keeps raw keys on the host. sbx secret set stores the key. The agent sends a placeholder. A host proxy inserts the real key. Destinations come from a kit fetched from a registry, a Git reference, or a local folder. - Since 0.43.0, an approval writes a binding of the service and the agreed domains. Kennedy found that list was never read back. The check only asked whether a binding existed for the service name, then injected the key toward whatever domains the current kit named. - His test replaced a kit approved only for api.anthropic.com, at the same reference, with a version aimed at his own test server. The next sandbox creation showed no prompt. The dummy key arrived in cleartext. The approval survived deletion of the sandbox. The policy log said the connection was allowed and did not say a key was injected. A malicious kit could also add its own server to the network allowlist without a prompt. Do not reproduce that replacement. - The vendor CVE record published December 1, 2026, says every version before 0.55.0 on macOS, Windows, and Linux is affected. The consent system in 0.43.0 introduced it. Version 0.55.0 enforces approved destinations for API keys and for OAuth separately, and treats a binding with no approved destinations as missing. The notes do not say approvals are now tied to a content digest, and they do not say every key injection is written to the policy log. Do not claim those two changes shipped. - Thirteen built-in integrations share the injection path, including Anthropic, OpenAI, GitHub, and Google. He tested Anthropic with a dummy value. Do not say the other twelve were demonstrated. A kit could not impersonate a built-in agent. The consent prompt still defaults to decline. - Scores: researcher 8.2 High on CVSS 3.1 after correcting 9.3 to a local vector, because the kit is a file the developer fetches. CVSS 4.0 is 6.9 (researcher) and 5.6 (vendor), both Medium. Do not pick a single score and drop the others. - The attacker does not need to be on the computer: one approval, then a changed line in the next kit version. Secrets from sbx secret set are global by default. A stolen GitHub token grants its scopes. Kennedy says a typical developer token includes repository write access. That is his description of a typical token, not a finding about our tokens. - Cloud sandboxes use a separate secret store. It is not established whether they shared this logic. Do not call cloud sandboxes safe, and do not call them vulnerable. - An earlier file-copy bug, reported the same day, September 21, 2026, was fixed on November 3, 2026. That fix does not close CVE-2026-136998. In both cases he says the virtual-machine boundary held. - The approvals file is ~/.config/sbx/credentials.yaml, or %APPDATA%\sbx\credentials.yaml on Windows. It records approvals, not key values. If you open it and see a secret value anyway, stop and do not copy it into the chat. Context: - What was impacted: host-side injection of API keys for Docker Sandboxes kits, not the virtual-machine boundary. - Who should care: developers who approved a third-party kit on a version before 0.55.0. - What to do: upgrade to 0.55.0, remove third-party approvals made on older versions, and rotate keys for any kit that changed after approval. Do this in order. Prefer read-only checks. Ask before you upgrade, delete a binding, or rotate a key. 1. Inventory - Find installed Docker Sandboxes versions on macOS, Windows, and Linux. Read only. A version below 0.55.0 is in range. 0.55.0 and newer close the flaw. If I have not given you the machines, say what you need and stop. - Read the approvals file if it is present. List service names and domains for third-party kits. Do not print token or key material. If the file contains a value that looks like a key, stop and tell me the path only. - Note whether keys were stored globally with sbx secret set or per sandbox with the --sandbox flag. Do not run a command that reveals the key. - If we only use cloud sandboxes, say the local flaw was not shown to apply, and that the report does not establish whether the cloud store shared the logic. Do not scan cloud accounts for this bug beyond what I already authorized. 2. Contain - If a third-party kit is approved on a version before 0.55.0, propose removing that binding and not creating new sandboxes from that kit until it is pinned and reviewed. Ask before you delete the binding or stop a running sandbox. - Do not fetch the kit from the network to see where it points. 3. Remediate - Upgrade to 0.55.0. Ask before you upgrade a shared machine. - After I agree, remove third-party bindings that were granted on a vulnerable version. The 0.55.0 check does not by itself rotate keys already exposed. - Rotate provider keys for any third-party kit that changed after approval, from the provider's own console, after I name the account. A GitHub token should be revoked and replaced if it was approved for a third-party kit on a vulnerable version. Ask before each rotation. - Pin remaining kits to a fixed commit where the source allows it, or switch them to a reviewed local folder. Store new keys per sandbox with the --sandbox flag instead of globally. - On every later sbx create, read inject domains and permissions.network.allow. Do not approve a kit whose destinations you have not read. 4. Verify - Report the installed version, which bindings remain, and which keys were rotated. If I did not agree to a change, report the inventory only. 5. Report back - State that the demo used a dummy key, that no attacks were reported, that cloud sandboxes were not shown either way, and that the November 3 file-copy fix is a different bug. Do not invent a fixed version other than 0.55.0, a victim, or a way to swap kit destinations. If a check needs access I have not given you, say what you need and stop.