Patch available CVSS 8.2 Security news

Docker Sandboxes CVE-2026-136998: an AI agent kit update could silently send a developer's API key away

On 30 November 2026 Docker fixed CVE-2026-136998 in Docker Sandboxes (sbx), the tool that runs AI coding agents inside isolated virtual machines. Versions 0.43.0 through 0.54.x remembered credential approvals only by service name. A third-party kit a developer had approved once could, in a later version and without another prompt, send the real API key to an attacker's server. The fix is in version 0.55.0.

Kyberkit editorial team · · event date · reading time 4 minutes · For admins and analysts

Patch available: Docker Sandboxes, CVE-2026-136998, CVSS 8.2

Key points

  • The flaw (CWE-863): credential approvals were stored against the service name, not the specific kit. The list of allowed domains was written but never checked at request time.
  • The attack: a developer approves an honest kit version, the attacker ships a new version under the same tag or branch with a different destination, and the proxy injects the real key into its requests – no prompt, no log entry.
  • Affected: Docker Sandboxes from 0.43.0 up to but not including 0.55.0 (NVD). Fixed in 0.55.0 on 30 Nov 2026.
  • Scores: Docker rates it CVSS 4.0 5.6, the Endor Labs researcher CVSS 3.1 8.2. No exploitation reported.

Vulnerabilities: CVE-2026-136998

What happened

On 30 November 2026 Docker released Docker Sandboxes 0.55.0. The release notes list a fix for CVE-2026-136998, where a modified third-party kit could reuse a previously approved service binding. Peyton Kennedy of Endor Labs reported the flaw on 21 September and published a technical write-up on the day of the fix. NVD received the record on 1 December.

Docker Sandboxes runs AI coding agents in a virtual machine. The agent never sees the real API key: a proxy adds it to outgoing requests, and only for approved services. That safeguard is what failed.

Technical details

According to Endor Labs, when a developer approved a kit (via sbx create), sbx wrote the service name and a list of domains to ~/.config/sbx/credentials.yaml. The domain list was never read when requests went out, and the approval was not tied to the kit's name, content or source. The proxy injected the key whenever a row existed for the service, sending it to whatever domains the current kit version declared in its inject block. A new kit version could also add its own host to the allowed network (permissions.network.allow) without a prompt.

So the attack runs like this: a developer approves an honest kit version; the attacker (the kit author, or whoever takes over its repository) publishes a version under the same tag or branch with a different destination; on the next sbx create the proxy sends the real key there. No prompt appears, and sbx policy log shows only an allowed connection. The researcher demonstrated it with a dummy key for the anthropic service and says it applies to all 13 built-in services, including OpenAI and GitHub.

The weakness is CWE-863 (incorrect authorization). Docker scores it CVSS 4.0 5.6; the researcher scores it CVSS 3.1 8.2. The gap comes mostly from how each side treats impact beyond the sandbox: the researcher counts a stolen key as opening the provider account (changed scope, high confidentiality and integrity impact), while Docker scores only the leak itself. The attack needs local execution and user action, so neither score is critical. Endor Labs lowered its initial 9.3 before reporting, having concluded the attack cannot be carried out over the network.

What 0.55.0 actually changes. According to the release notes, the proxy now enforces approved destinations separately for API keys and OAuth tokens. The same release keeps sandbox networking blocked until the egress policy is in place and masks custom secrets echoed back in responses (Docker calls that filtering best effort, not a guarantee). The related CVE-2026-103916 was already fixed in 0.51.0.

Why it matters. Kits are to AI agents what packages are to npm or PyPI: third-party code a developer reviews once and then trusts. Reference a kit by tag or branch, and every launch gets whatever the author has put there since.

Who is affected

Docker Sandboxes from 0.43.0 (the release that introduced approvals) up to but not including 0.55.0, on macOS, Linux and Windows. In practice, anyone running third-party kits referenced by a tag, branch or directory that someone else can change.

How to tell if you were compromised

No indicators of compromise have been published, and sbx does not log key injection. Compare the inject domains and permissions.network.allow entries of the kits you use with what you approved, look for unfamiliar destinations in egress logs, and check your API provider's usage dashboard for requests you don't recognise. In a SOC, it is worth alerting on AI service keys used from unusual IP addresses or outside working hours – providers such as OpenAI and GitHub show where and when a key was last used.

What to do

  1. Update Docker Sandboxes to 0.55.0 – the proxy now enforces approved destinations separately for API keys and OAuth tokens.
  2. Review ~/.config/sbx/credentials.yaml and remove bindings granted to third-party kits you no longer need.
  3. Pin kits to a specific commit, or use a reviewed local copy.
  4. Scope keys to a single sandbox (--sandbox); sbx secret set is global by default.
  5. Rotate keys if a kit you approved has changed since.

We covered a similar AI tooling supply-chain risk in the compromised agent-framework releases on PyPI; sort hashes and domains from your logs with the IOC extractor.

Timeline

  • 21 Sep 2026 – Endor Labs reports the flaw to Docker.
  • 3 Nov 2026 – Docker ships 0.51.0, fixing the related CVE-2026-103916.
  • 30 Nov 2026 – Docker Sandboxes 0.55.0 and the Endor Labs write-up are published.
  • 1 Dec 2026 – CVE-2026-136998 appears in NVD.

FAQ

Does this affect regular Docker Desktop or Docker Engine?

The NVD record covers Docker Sandboxes (the sbx tool) only. It does not list Docker Desktop or Docker Engine.

I don't use any third-party kits. Do I need to do anything?

The attack needs a kit whose author can publish a new version. If you only use your own or built-in kits you are not exposed, but we still recommend updating to 0.55.0.

How can I tell whether my key leaked?

sbx did not log the key injection, only the allowed connection. Compare each kit's inject domains with what you originally approved, and check your API provider's usage dashboard for requests you don't recognise. In a SOC, it is worth alerting on AI service keys used from unusual IP addresses or outside working hours – providers such as OpenAI and GitHub show where and when a key was last used. If in doubt, rotate the key.

Sources

  1. Docker – Docker Sandboxes release notes, version 0.55.0
  2. NVD – CVE-2026-136998
  3. Endor Labs – CVE-2026-136998: Docker Sandboxes
  4. Docker – Sandboxes: Credentials

Spotted a mistake? Let us know and we will correct it openly.