Due to a flaw in Docker Sandboxes—the tool that runs AI coding agents inside isolated virtual machines—a malicious Agent Kit update was able to steal API keys that the product is intended to keep out of reach of agents. Endor Labs researcher Peyton Kennedy found the vulnerability; This is tracked as CVE-2026-136998, and Docker fixed it in version 0.55.0 released yesterday.

The main promise of the product is that the raw key never enters the sandbox. A developer stores a key with sbx secret set on the host. The agent inside the virtual machine sends the request with a placeholder header, and a proxy on the host puts the original key on the way out. Kit—a packaged agent configuration fetched from the registry, Git reference, or a local folder—determines which destinations will receive the original key.

Since version 0.43.0, released on September 15, authorizing a kit's credential request creates a binding that documents the service and developer compliant domains. Kennedy found that the recorded list was never read again. During the request the test would simply ask if there was a binding for the service name, and then send the original key to any domain specified in the current version of the proxy kit.

"The operators had no role in deciding which domains to approve," Kennedy wrote in his technical analysis.

In his tests, a kit that allowed api.anthropic.com as the only destination was replaced with a version of the same reference that pointed to a test server instead. No prompt is shown during subsequent sandbox creation, and the proxy sends the dummy key in clear text to that server. The authorization remained in place even after the sandbox was deleted. Nothing later alerted the developer: the policy log documented the connection as authorized and said nothing about whether a key had been inserted.

Kennedy found that a malicious kit version could also add its own server to the sandbox's network allolist without prompting.

According to the official CVE record Docker published today, the flaw, which originates from the consent system added in version 0.43.0, affects all versions prior to 0.55.0 on macOS, Windows, and Linux. Thirteen built-in integrations use the same key-injection path, including Anthropic, OpenAI, GitHub, and Google. Kennedy tested one of them—Anthropic—with dummy values.

He rated the error 8.2 (High) according to CVSS 3.1; At first he gave it a 9.3 (Critical), then revised the attack vector to be local: the malicious kit is the file that the developer brings, not the service that an attacker reaches over the network. According to CVSS 4.0 he has a score of 6.9 and a vendor score of 5.6—both Medium. The two vectors differ in whether the loss of the provider account behind the stolen key is counted in the base score.

An attacker never needs access to a developer's computer; Just a one-time approval and a changed line in the next version of the kit is enough. Other tests in Kennedy's tests were intact: no kit can impersonate a built-in agent, and the consent prompt defaults to decline.

The amount of damage follows the key. Secrets stored with the sbx secret set are global by default, so any redirected key uses the sandbox on every machine. According to Kennedy, the stolen GitHub token grants only as much power as its scope allows; In the case of normal developer tokens this includes write rights to their repositories.

The study focused on local products. Cloud sandboxes maintain separate secret stores, and it is not yet established whether they ever share the affected authorization logic.

Upgrading to 0.55.0 fixes the error. According to the version's release notes, Kit Credential Injection now enforces authorized destinations separately for API keys and OAuth, and treats bindings without authorized destinations as missing.

For machines that are still on older versions, and that have given credentials to third-party kits in a vulnerable state, Kennedy recommends:

Review the authorization file (~/.config/sbx/credentials.yaml, or %APPDATA%\sbx\credentials.yaml on Windows) and remove bindings to any third-party kits. The file contains authorization information, not key values.

Read the kit's inject domains and its permissions.network.allow entries during every sbx create, not just the first time.

Where the source of the kit allows, pin the kits to a specific commit, or place a reviewed copy in a local folder.

Save keys per sandbox with the --sandbox flag instead of saving globally.

If an approved third-party kit is later changed, rotate the provider keys behind it.

Kennedy also told Docker to add permissions to the kit's content digest and document each key injection in the policy log. The published note confirmed the destination implementation, but did not mention those two changes.

This is Kennedy's second bug in the product in less than a month. The former was a file-copy flaw, which allowed an agent to access host files outside of authorized folders; It was fixed on 3 November. Both were communicated to the vendor on 21 September.

In both cases, Kennedy said, the virtual machine boundary was intact, and the failure occurred where developer approval was associated.

"A prompt is only as strong as what is associated with its response. If the authorization is not associated with the reviewed artifact, the next update inherits it," Kennedy wrote.