Published on December 1, 2026
Docker Sandboxes flaw could let a malicious AI agent kit leak developer API keys (CVE-2026-136998)
Severity
High
Docker Sandboxes runs AI coding agents inside isolated virtual machines. It is meant to keep real API keys out of the agent’s reach: the agent only sees a placeholder, and a proxy on the host adds the real key when a request goes out.
Endor Labs found a problem with how kit approvals were checked. A “kit” is a packaged, third-party agent setup. When a developer approved a kit’s request for credentials, the tool saved the domains they agreed to. But when a request was made later, it only checked that an approval existed for that service. It never compared the destination against the saved domains.
So after a developer approved a kit once, a later update to that kit could send the real key (Anthropic, OpenAI, GitHub, Google and others) to a server the attacker controls. The developer would see no new prompt and get no warning. The policy log showed the connection as allowed but did not record that a key had been injected. A malicious update could also add its own server to the sandbox’s network allowlist without asking. The approval stayed in place even after the sandbox was deleted.
The attacker does not need access to the developer’s machine. One approval plus a small change in a later version of the kit is enough. The flaw was shown in a lab using a dummy key, and no attacks using it have been reported.
| CVE ID | Summary | Severity |
| CVE-2026-136998 | Docker Sandboxes did not enforce the destination domains a developer approved for a kit’s credentials. A later version of a kit could quietly send real API keys to an attacker’s server and add that server to the network allowlist, with no new prompt. | High (CVSS 3.1: 8.2) |
Affected Products
- Docker Sandboxes (sbx), from version 0.43.0 up to but not including 0.55.0, on macOS, Windows and Linux. Docker’s CVE record lists every version before 0.55.0 as affected.
- 13 built-in integrations use the same key-injection path, including Anthropic, OpenAI, GitHub and Google.
- It is not yet known whether cloud sandboxes are affected. They use a separate secret store.
Recommendation
- Upgrade Docker Sandboxes to version 0.55.0 or later. This version enforces the approved destinations.
- Check the approvals file and remove any approvals given to third-party kits:
- Linux/macOS: ~/.config/sbx/credentials.yaml
- Windows: %APPDATA%\sbx\credentials.yaml
- Change (rotate) any provider API keys or tokens that were approved for a third-party kit that has since been updated.
- Each time you run sbx create, check the kit’s inject domains and its permissions.network.allow entries, not only the first time.
- Where you can, pin kits to a fixed commit or use a reviewed local copy.
- Store secrets for each sandbox separately with the –sandbox flag instead of globally.
Source
https://thehackernews.com/2026/12/docker-sandboxes-flaw-lets-malicious-ai.html
https://www.endorlabs.com/learn/cve-2026-136998-docker-sandboxes
