
Docker Sandboxes runs AI coding agents inside isolated virtual machines, with a promise that the developer’s real API keys never enter the sandbox. A flaw tracked as CVE-2026-136998 broke the link between what a developer approved and what actually got the key. According to Endor Labs researcher Peyton Kennedy, a third-party “kit” (a packaged agent configuration fetched from a registry, a Git reference or a local folder) could be approved once and then updated so that the next run sent the developer’s real Anthropic, OpenAI or GitHub key to a server the attacker controls, with no new prompt. The Hacker News reports that no attacks using the flaw have been reported.
The mechanism, as Endor Labs describes it: since version 0.43.0, approving a kit’s credential request records the service and the domains the developer agreed to. That recorded domain list was never read back. At request time the check only asked whether an approval existed for the service name, so the host-side proxy injected the real key into whatever domains the current version of the kit named. In the researcher’s test, with a dummy key and a test server on his own machine, a kit approved for api.anthropic.com was replaced at the same reference by a version pointing elsewhere; the proxy delivered the dummy key to that server in cleartext. Docker’s release notes say exploitation required the user to have previously approved the service and then launch the modified kit. Docker fixed the issue in Docker Sandboxes 0.55.0, released November 30.
Severity is reported differently. Kennedy rates it 8.2 (High) under CVSS 3.1 and 6.9 (Medium) under CVSS 4.0, and The Hacker News says the vendor’s CVSS 4.0 score is 5.6.
How to check if you’re affected
Affected versions of Docker Sandboxes (the sbx CLI and sandboxd) are 0.43.0 up to (not including) 0.55.0, according to Endor Labs, which lists versions before 0.43.0 as not affected and 0.55.0 as the fix. It affects macOS, Windows and Linux. Endor Labs says thirteen built-in integrations share the key-injection path, including Anthropic, OpenAI, GitHub and Google, and the researcher tested one (Anthropic). The Hacker News says cloud sandboxes keep a separate secret store and that the research covered the local product only.
- Upgrade to 0.55.0 or later. Note that Docker’s release notes also list breaking changes in 0.55 (for example, it stops reading some environment variables), so read them first.
- If you ever approved credentials for a third-party kit, review the approvals file (steps from here on are the researcher’s recommendations as relayed by The Hacker News):
~/.config/sbx/credentials.yaml, or%APPDATA%\sbx\credentials.yamlon Windows. The researcher recommends removing any binding granted to a third-party kit. Docker’s documentation says the file records approvals, not key values. - The researcher recommends reading a kit’s inject domains and its
permissions.network.allowentries on everysbx create, pinning kits to a fixed commit or keeping a reviewed local copy, and storing keys per sandbox with the--sandboxflag instead of globally. - The researcher recommends rotating the provider keys behind any approved third-party kit that later changed.
The researcher also asked Docker to tie approvals to a kit’s content digest and to log every key injection. The Hacker News says the published release notes confirm destination enforcement and do not mention those two changes.
Sources
- CVE-2026-136998: Docker Sandboxes vulnerability lets malicious AI agent kits steal developers’ API keys (Endor Labs)
- Docker Sandboxes release notes (0.55.0)
- CVE record for CVE-2026-136998 (linked from The Hacker News; page is script-rendered, not read)
- Docker Sandboxes flaw lets malicious AI agent kit updates steal developers’ API keys (The Hacker News)
- Docker Sandboxes bug could leak AI API keys via malicious updates (BleepingComputer)
