AI & Compute · 3 min read

Docker Sandboxes bug could hand AI API keys to attackers via kit updates

CVE-2026-136998 let an updated third-party kit send real API keys for 13 services to an attacker's server with no prompt. Docker fixed it in 0.55.0, out Nov. 30. Users should rotate exposed keys.

By Rebecca Stone594 words

Key takeaways

  1. CVE-2026-136998 exposed API keys for 13 built-in services including OpenAI, Anthropic and GitHub
  2. The bug shipped in Docker Sandboxes 0.43.0 and was fixed in 0.55.0 on Nov. 30
  3. Payton Kennedy of Endor Labs found and tested the flaw with a dummy Anthropic key
  4. Docker's proxy injected real keys into attacker-controlled connections without re-prompting, and logs showed nothing
  5. CloudSEK reported React2Keys stole 50,000+ credentials across 400 organizations
Docker Sandboxes bug could hand AI API keys to attackers via kit updates
AI-generated

A flaw in Docker Sandboxes, tracked as CVE-2026-136998, could have let a malicious third-party kit update steal a developer's API keys for 13 built-in services — including Anthropic, OpenAI, GitHub, Google, Cursor, Mistral and xAI — and send them to an attacker-controlled server without ever prompting the developer. BleepingComputer reported the bug on Dec. 1, after Docker shipped the fix in version 0.55.0 on Nov. 30.

The faulty code arrived in version 0.43.0 of Docker Sandboxes, the isolated environment Docker built for running AI coding agents. That version window matters: anyone who installed or updated between 0.43.0 and 0.55.0 may have run a vulnerable setup.

Payton Kennedy of Endor Labs found the issue. Kennedy tested the flaw with a dummy Anthropic key, confirmed the leak path worked, and reported it to Docker.

How did the leak actually work?

Docker's design was supposed to be a gatekeeper. When a developer approves a third-party kit, Docker records which domains are allowed to receive API keys. That approval is the point of the whole mechanism.

The bug sat in what happened on later runs. Instead of re-checking the recorded destinations, Docker checked only whether the AI service itself had been approved. So if an updated kit redirected the key to an attacker's server, Docker's proxy went ahead and injected the real credential into the connection anyway. No second prompt. No warning.

The logs made it worse. The policy log showed only an allowed connection, with no mention that a credential had been injected at all. A developer reviewing their own audit trail would have seen nothing alarming.

The exposure covered credentials for 13 built-in services:

  • Anthropic
  • Copilot
  • Cursor
  • Devin
  • Droid
  • GitHub
  • Google
  • Groq
  • Mistral
  • Nebius
  • OpenAI
  • OpenRouter
  • xAI

The damage potential varies by credential. A stolen AI provider key could run up charges on the victim's account, according to the report. A stolen GitHub token could expose any repositories within that token's scope.

What does the fix change?

In version 0.55.0, released Nov. 30, Docker rebuilt how credential injection makes its decisions. Injection now respects destinations that were approved separately for API keys and for OAuth, rather than trusting a blanket service-level approval. Bindings that have no approved destinations are treated as missing — which means they fail closed instead of quietly proceeding.

Docker's advice to users runs in three steps:

  • Upgrade to 0.55.0 or later.
  • Review credential approvals already granted to third-party kits.
  • Rotate any key that may have been exposed — particularly if they saw suspicious configuration or destination changes.

BleepingComputer's report did not include a statement from Docker.

Why this fits a wider pattern

Developer keys have become a prime target, and the scale is no longer theoretical. Security firm CloudSEK said last month that an AI-automated campaign it calls React2Keys has stolen more than 50,000 credentials across 400 organizations.

The Docker bug lands in the middle of that trend. AI coding agents hold keys to expensive services and sensitive repositories, and they run against infrastructure that's still accreting its security model. A sandbox that injects real credentials into connections based on stale approvals is exactly the kind of quiet failure that campaigns like React2Keys are built to harvest.

For teams running Docker Sandboxes with third-party kits, the practical question now is whether any of those kits changed destinations between 0.43.0 and 0.55.0. If one did, rotation isn't optional.

mlq.ai (Source)

Filed under

Share this article:

More from Rebecca Stone

Rebecca Stone

Show full bio

Correspondent covering technology and product news in Semiconductors, chip manufacturing, hardware, AI compute at Chip Dispatch.

1,429 articles

Read also

« Previous articleNext article »