Skip to content

AI Compass / News

Docker Sandboxes flaw could send API keys to an unknown server

Automation

In Docker Sandboxes before version 0.55.0, a modified third-party kit could route stored keys, for example for Anthropic, OpenAI or GitHub, to a server of its choosing. It required an earlier approval. Update and review your approvals.

Source: CVE-2026-136998, Docker Sandboxes (GitHub Advisory GHSA-h7m7-wfj3-cprf),

Technical drawing: two versions of a kit send requests through the same proxy, which inserts the key. Version 1 reaches the approved API, version 2 an unknown server. Version 0.55.0 is ticked.Technical drawing: two versions of a kit send requests through the same proxy, which inserts the key. Version 1 reaches the approved API, version 2 an unknown server. Version 0.55.0 is ticked.

What happened: Docker Sandboxes runs AI coding agents inside isolated virtual machines. Your API keys stay on your own machine, and a proxy, a go-between, only inserts the real key when the agent makes a request. On 1 December 2026, the vulnerability CVE-2026-136998 was published (GitHub advisory). It affects versions from 0.43.0 up to, but not including, 0.55.0. Version 0.55.0 fixes it.

How it works: A kit is a ready-made agent configuration that you load from a registry, a Git repository or a local folder. When a kit wants to use one of your keys, Docker asks you and records which addresses the key may go to. For third-party kits, though, the proxy never checked those addresses. So a later, modified version of the kit could send the key to a different server without asking again. According to The Hacker News, this covers keys for Anthropic, OpenAI and GitHub, among others. The flaw was found by Peyton Kennedy of Endor Labs.

How serious is it? An attack only works if you approved the kit’s access to the service at some point and then start the modified version. The Hacker News reports no known attacks; the researcher demonstrated the flaw with a dummy key. Docker rates it medium (CVSS 4.0: 5.6 out of 10), and that’s the score in the GitHub advisory too. The researcher’s own CVSS 4.0 score is 6.9, also medium; under the older CVSS 3.1 method it comes out at 8.2, which counts as high. So how serious it looks depends partly on which scoring method you use.

What you can do:

  1. Update Docker Sandboxes to version 0.55.0 or later. According to The Hacker News, the proxy now checks the approved addresses.
  2. Open credentials.yaml (~/.config/sbx/credentials.yaml, or %APPDATA%\sbx\credentials.yaml on Windows) and remove approvals for third-party kits you don’t need. The file holds approvals only, no keys.
  3. If a kit you approved has changed since then, rotate the affected keys with the provider.
  4. Pin kits to a fixed commit, or use a reviewed local copy where possible.
  5. Store keys for a single sandbox with --sandbox. Keys stored globally apply to every sandbox on the machine.

Steps 2 to 5 come from The Hacker News report. The advisory itself only names the update.

Context: The approval was tied to the name of the service, not to the contents of the kit. That’s why the researcher asked Docker to bind approvals to a kit’s exact contents and to log every time a key is inserted. According to The Hacker News, the release notes don’t mention either change.

My workshops show you how to bring AI into your team. See the workshops