DEV Community

Docker Sandboxes flaw CVE-2026-136998 let malicious agent kits steal developers' API keys; fixed in v0.55.0

Endor Labs disclosed CVE-2026-136998 on November 30, 2026: a malicious third-party agent kit for Docker Sandboxes could reuse one honest credential approval to send a developer's real Anthropic, OpenAI or GitHub key to an attacker's server. Docker fixed it in v0.55.0, released the same day.

Status

Fixed - High

Affected: Docker Sandboxes v0.43.0 through the versions before v0.55.0: a third-party agent kit's credential approval is remembered by service name, the approved domain list is never enforced, and a later kit version can redirect the real provider key to an attacker-chosen host.

All thirteen built-in services share the injection path (anthropic, copilot, cursor, devin, droid, github, google, groq, mistral, nebius, openai, openrouter, xai); credentials are stored globally by default, so one redirected key is the key every sandbox on the machine uses.

CVE identifiers: CVE-2026-136998 (NVD)

Resolved on: November 30, 2026.

Discovered by: Endor Labs (reported to Docker on September 21, 2026 as ENDOR-VUL-2026-21091)

What changed

Endor Labs disclosed CVE-2026-136998 on November 30, 2026, a vulnerability in Docker Sandboxes, the tool that runs AI coding agents in isolated microVMs while keeping developers' real API keys outside the sandbox. Docker Sandboxes stores a key on the host and swaps a placeholder for the real key only for destinations a kit declares and the developer approves.

Endor Labs found the approval was remembered by service name alone: the approved domain list was written and never enforced, and the approval was not tied to the kit or its version, so a third-party agent kit approved once could ship an update that pointed the same service at an attacker's server and receive the real key with no new prompt, no warning and nothing in the logs recording that a key was sent.

The flaw was introduced in Docker Sandboxes v0.43.0, the release that added the credential consent gate, and affects the shared injection path used by all thirteen built-in services, including anthropic, openai and github. Endor Labs scores it 8.2, High, under CVSS 3.1, and 6.9, Medium, under CVSS 4.0.

A stolen model-provider key means metered API usage billed to the victim; a stolen GitHub token can carry write access to the victim's repositories. Docker released the fix in Docker Sandboxes v0.55.0 on November 30, 2026.

Until every machine is updated, Endor Labs advises reviewing the bindings in ~/.config/sbx/credentials.yaml, removing approvals granted to third-party kits, scoping keys per sandbox instead of globally, and rotating any key a changed kit could have reached.

How to fix it

  • UPDATE - Upgrade to Docker Sandboxes v0.55.0, released November 30, 2026, which contains the fix for CVE-2026-136998.
  • WORKAROUND - Review ~/.config/sbx/credentials.yaml and remove any binding granted to a third-party kit; scope keys with sbx secret set --sandbox instead of globally, and rotate keys a changed kit could have reached.

Advisories: Endor Labs: CVE-2026-136998 Docker Sandboxes disclosure - endorlabs.com; CVE-2026-136998 (CVE Program) - cve.org

Metrics

Docker Sandboxes in numbers

Values are copied from the linked source on the date shown. They are not IA Compa measurements.

  • CVE-2026-136998 CVSS 3.1 base score (Endor Labs) as of Nov 30, 2026 - 8.2 - Source: endorlabs.com

Why it matters

Why it matters: teams letting coding agents work in Docker Sandboxes should treat this as a same-day update and credential review, not a routine patch: update every developer machine to v0.55.0, audit which third-party kits hold standing credential approvals, scope provider keys per sandbox so one redirected key cannot reach every project, and rotate keys where a kit changed after approval - the approval a developer granted honestly is exactly what the attack reused.

Sources

  • CVE-2026-136998: Docker Sandboxes vulnerability lets malicious AI agent kits steal developers' API keys - Endor Labs ยท endorlabs.com - Official
  • CVE-2026-136998 record - CVE Program ยท cve.org - Official
Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.