A security vulnerability in Docker Sandboxes could allow rogue updates to third-party AI agent kits to exfiltrate developers' sensitive API keys and access tokens. The tool, designed to run automated AI coding assistants inside isolated environments, failed to verify approved destination domains during subsequent runs.
The flaw, tracked as CVE-2026-136998, was uncovered by Endor Labs security researcher Peyton Kennedy. Docker addressed the problem on November 30 with the release of Docker Sandboxes version 0.55.0. According to reports from The Hacker News and BleepingComputer, no active attacks exploiting the flaw have been observed in the wild.
Flawed Domain Verification in Proxy Logic
Docker Sandboxes isolates AI agents inside virtual machines while keeping credentials on the host machine. When an agent inside the sandbox dispatches an outgoing request, it uses a placeholder header. A host-level proxy intercepts the traffic and swaps the placeholder with the real API key before forwarding the call to the provider.
Developers must authorize access when running an agent kit fetched from a local directory, Git repository, or remote registry. While the platform prompts developers during initial setup and records the approved domain destinations, it never verified those destinations during later executions. Instead, the proxy only checked whether an authorization entry existed for the service name itself.
If a third-party kit author updated the kit configuration to route requests to an attacker-controlled endpoint, the host proxy delivered the plain-text credentials to the new server on subsequent runs. The software displayed no warning to the developer, and the consent was persistent across sandbox restarts and deletions.
Compounding the problem, audit visibility failed to flag the transfer. The sandbox policy log marked the connection as permitted without indicating that a secret credential had been injected into the payload.
Impacted Services and Attack Scope
The vulnerable credential-handling mechanism was introduced in version 0.43.0 and impacts versions prior to 0.55.0 across Windows, macOS, and Linux systems. It affects 13 built-in integrations, including Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI.
Because credentials stored via the sbx secret set command apply globally across all sandboxes on a host by default, an exfiltrated secret affects every project utilizing that credential. Leaked AI provider keys allow attackers to consume expensive compute quotas, while exposed GitHub tokens could grant write access to private source code repositories depending on their configured scopes.
Kennedy scored the vulnerability at 8.2 (High) under CVSS 3.1 and 6.9 under CVSS 4.0, while Docker assigned it a CVSS 4.0 score of 5.6 (Medium), reflecting differences in scoring criteria regarding provider account harm.
Remediation and Defensive Guidance
Docker resolved the issue in Docker Sandboxes 0.55.0. The updated release enforces domain destinations separately for API keys and OAuth tokens, treating credential bindings without explicit destination approvals as invalid.
Defenders and developers using Docker Sandboxes should take the following actions:
- Upgrade the software: Immediately update installations to Docker Sandboxes version 0.55.0 or later.
- Audit existing approvals: Inspect the credential approval file located at
~/.config/sbx/credentials.yamlon macOS and Linux, or%APPDATA%\sbx\credentials.yamlon Windows, and delete entries linked to untrusted or third-party kits. - Inspect kit definitions: Manually examine the network allowance and injection domain parameters in kit configurations before running
sbx createcommands. - Pin external dependencies: Pin third-party agent kits to immutable Git commit hashes or maintain verified local mirrors rather than tracking dynamic branches.
- Isolate credentials: Store API tokens on a per-sandbox basis by utilizing the
--sandboxflag rather than setting global secrets. - Rotate exposed keys: Immediately revoke and rotate any provider API keys or personal access tokens associated with third-party kits that underwent unexpected updates.





