Docker Sandboxes flaw could expose AI API keys through malicious kit updates
Tech

Docker Sandboxes flaw could expose AI API keys through malicious kit updates

TechNews Editorial
TechNews EditorialDec 2, 2026 · 2 min read
Share

Why it matters

The flaw could expose AI provider keys that may incur charges, or GitHub tokens that may grant repository access if their permissions allow it.

The facts

  • A Docker Sandboxes flaw could send approved API keys to an attacker-controlled server after a malicious kit update.
  • Docker fixed CVE-2026-136998 in version 0.55.0, released on November 30.
  • Users are advised to upgrade and review credentials approved for third-party kits.

Advertisement

A flaw in Docker Sandboxes could let a malicious update to a third-party AI agent kit send a developer’s API key to an attacker-controlled server. Docker fixed the issue in version 0.55.0, released on November 30.

Docker Sandboxes runs AI coding agents in isolated environments. When a developer approves a kit, Docker records the domains allowed to receive a credential. On later runs, the vulnerable code checked whether the developer had approved the AI service, but did not recheck the approved destination.

That gap meant an updated kit could point a request to a different server. Docker’s proxy would then attach the real API key without asking the developer again. The policy log would mark the connection as allowed without showing that the key had been sent.

“The second ‘sbx create’ shows no prompt. ‘sbx policy log’ records the connection to the canary host as allowed and says nothing about a credential being injected into it,” application security company Endor Labs said. “An operator reviewing logs afterwards sees an ordinary permitted request.”

Read nextAnthropic reports 18-year-old server firmware flaw, with vendor updates still pending

Payton Kennedy discovered the vulnerability

Endor Labs researcher Payton Kennedy discovered the flaw, tracked as CVE-2026-136998, and demonstrated it with a dummy Anthropic key. Kennedy reported it to Docker and said the faulty code first appeared in Docker Sandboxes 0.43.0.

According to Kennedy, the affected credential-handling code is shared by 13 built-in services: Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI. A stolen AI provider key could result in charges to its owner’s account. A GitHub token could provide repository access if its permissions allow it.

A security auditor clips a destination verification tag onto a server sandbox bay in a data room.
Illustration: AI & Tech News

Version 0.55.0 fixes the credential handling

Docker Sandboxes 0.55.0 makes credential injection follow the destinations approved separately for API keys and OAuth credentials. It also treats credential bindings with no approved destinations as missing.

Users are advised to upgrade to version 0.55.0 and review credential approvals given to third-party kits. If a kit has suspicious configuration or destination changes, they should consider rotating any potentially exposed key.

What this means

Docker released Cloud Sandboxes on September 25, 2026, to contain AI agents following incidents involving autonomous models escaping local environments. Endor Labs researcher Payton Kennedy reported that the credential-handling vulnerability, tracked as CVE-2026-136998, was introduced in Docker Sandboxes version 0.43.0. The vulnerable credential-handling mechanism is shared by 13 built-in services: Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter, and xAI. In vulnerable versions, Docker's proxy checked if a developer approved a service but failed to recheck destination servers, logging connections as ordinary permitted requests without showing that credentials were injected.

Newsletter

Get the best AI & tech news daily

A concise daily digest. Unsubscribe anytime.

We use your email only to send this newsletter.

Keep reading