Kennedy demonstrated the severity of this "bait and switch" vulnerability through a controlled experiment. He created a kit that initially requested access to a legitimate endpoint, such as api.anthropic.com. Once the developer granted approval for this trusted destination, Kennedy updated the kit at the same reference point to point toward a test server under his control. Because the system did not re-verify the destination against the original approval, and because the approval persisted even after a sandbox was deleted, the proxy automatically delivered a dummy API key to the malicious server in cleartext.
The attack requires only a single initial approval from the developer. Once that trust is established, a subsequent update to the kit’s configuration can redirect traffic and steal credentials without triggering any new prompts or warnings. Furthermore, Kennedy found that the product’s policy logs offered no indication of foul play; the logs recorded the connections as "allowed" but failed to mention that a sensitive key had been injected into the traffic sent to an unauthorized domain. A malicious kit could even go a step further by adding its own command-and-control server to the sandbox’s network allowlist without any user intervention.
The implications of such a leak are profound, as the damage follows the stolen key. Secrets stored within the Docker Sandbox environment are often global by default, meaning a compromised key is likely the same one used by every sandbox instance on that developer’s machine. The theft of a GitHub token, for example, could grant an attacker write access to a developer’s private repositories, potentially leading to supply chain attacks or the injection of malicious code into legitimate projects.

The vulnerability affects Docker Sandboxes on macOS, Windows, and Linux for all versions released between 0.43.0 and 0.55.0. It impacts thirteen built-in integrations that utilize the key-injection path, including major AI providers like Google, OpenAI, and Anthropic. Kennedy initially assigned the flaw a CVSS 3.1 score of 9.3, categorizing it as "Critical." However, after further review, the score was adjusted to 8.2 ("High") because the attack vector was classified as "local." This classification reflects that a developer must actively fetch and run a malicious kit, rather than an attacker reaching the system over a network. Under the newer CVSS 4.0 standard, the scores are slightly lower, with Kennedy rating it at 6.9 and the vendor rating it at 5.6, both falling into the "Medium" severity category. The discrepancy in these scores often hinges on whether the potential harm to the provider accounts associated with the stolen keys is factored into the base assessment.
Docker responded to the report by releasing version 0.55.0, which includes a comprehensive fix for the logic error. According to the official release notes, the updated version now strictly enforces the destinations approved for API keys and OAuth credentials separately. If a binding exists but contains no approved destinations for a specific request, the system will treat the binding as missing and deny the injection of the secret.
