Docker Sandboxes Flaw CVE-2026-136998 Lets Updated Agent Kits Steal API Keys

· CyberSecurity

TLDR

  • Endor Labs says an updated third-party agent kit can send developers' real API keys to an attacker after one approval.1
  • Docker fixed CVE-2026-136998 in Docker Sandboxes 0.55.0, released on 30 November; affected versions run from 0.43.0.45
  • The Hacker News says no attacks have been reported; the researcher used a dummy key.12

Docker Sandboxes runs AI coding agents in isolated environments, and a flaw tracked as CVE-2026-136998 means the product could hand a developer's real API key to an attacker, according to security firm Endor Labs.13 A third-party agent kit, a packaged agent configuration, can collect one approval from the developer and then push an update that sends their real Anthropic, OpenAI or GitHub key to a server the attacker controls, with no new prompt.1 The Endor Labs researcher demonstrated this with a dummy Anthropic key and a test server on a loopback address, and The Hacker News says no attacks using the flaw have been reported.12 The CVE record says exploitation requires the operator to have approved the service earlier and then launch the modified kit, and its CISA enrichment entry lists exploitation as "none".5

Docker Sandboxes is designed so that raw keys never enter the sandbox: a developer stores a key on the host, the agent sends requests with a placeholder header, and a proxy on the host swaps in the real key on the way out.1 Since version 0.43.0, which The Hacker News says was released on 15 September, approving a kit's credential request records the service and the domains the developer agreed to.12 Endor says the recorded domain list was never read back: at request time the check only asked whether an approval existed for the service name, so the proxy sent the real key to whatever domains the current version of the kit named.1 Endor adds that the approval is not tied to a kit name, version or content digest, and that in its test the approval survived the sandbox being torn down.1 BleepingComputer, quoting Endor, says the policy log recorded the connection as allowed and gave no sign that a credential had been injected.3

Endor says thirteen built-in services share the vulnerable injection path, including Anthropic, Copilot, Cursor, GitHub, Google, OpenAI and xAI, but it demonstrated only Anthropic.13 Endor says a stolen AI provider key can be billed to the victim and a stolen GitHub token can give write access to repositories.1 It also says keys set with the product's secret command are stored globally by default, so a redirected key is the one every sandbox on the machine uses.1 The Hacker News reports that Endor rates the flaw 8.2 High on CVSS 3.1, after first scoring it 9.3 Critical and correcting the attack vector to local, and that its CVSS 4.0 score is 6.9 while the vendor's is 5.6, both Medium.2 The CVE record carries the vendor's 5.6 score and lists versions from 0.43.0 up to, but not including, 0.55.0 as affected.5 The Hacker News also says Docker's cloud sandboxes keep a separate secret store and that it has not been established whether they ever shared the affected logic.2 The CVE record was published on 1 December with Docker as the assigning body, although Endor's disclosure timeline lists the CVE as published on 30 November.15

Version 0.55.0 is the fix, and Docker's release notes date it 30 November.4 The release notes say credential injection now enforces the approved destinations for API keys and OAuth tokens, and that bindings with no approved destinations are treated as missing.4 They also say external endpoints must now use HTTPS to receive host-managed credentials, and that plain HTTP requests receive no substitution.4 Endor's test showed the dummy key arriving in cleartext over HTTP.1 The researcher also asked Docker to tie approvals to a kit's content digest and to log every key injection, and The Hacker News says the published notes mention neither.12 Endor recommends upgrading and reviewing any credential approvals granted to third-party kits, and Endor and BleepingComputer both advise rotating keys if an approved kit later changed.13 The CVE record's stated workaround is not to run untrusted third-party kits with stored provider credentials, and The Hacker News lists pinning kits to a fixed commit among the researcher's other steps.25

Why it matters: the flaw undercuts Docker Sandboxes' promise that real keys stay out of an agent's reach, because one approval followed by a routine kit update could expose a key that bills the victim's AI account or grants access to their repositories.123

Sources

  1. CVE-2026-136998: Docker Sandboxes vulnerability lets malicious AI agent kits steal developers' API keys | Endor Labs (Endor Labs)
  2. Docker Sandboxes Flaw Lets Malicious AI Agent Kit Updates Steal Developers' API Keys (The Hacker News)
  3. Docker Sandboxes bug could leak AI API keys via malicious updates (BleepingComputer)
  4. Docker Sandboxes release notes | Docker Docs (Docker)
  5. CVE Record: CVE-2026-136998 (CVE Program)