CVE-2026-136998: When an Approved AI Agent Kit Changes, Your Keys Can Follow It
CVE-2026-136998 (CVSS 8.2) in Docker Sandboxes let a modified built-in agent kit silently inherit a previous one-time consent and quietly exfiltrate real Anthropic, OpenAI or GitHub credentials to an attacker-controlled host. The sandbox itself was never broken. The flaw is upstream of the sandbox, in how approvals were scoped: bound to the service name only — not to the kit's version and not to the destinations the approval covered. The fix is v0.55.0, released 30 November 2026. Here is what happened, why the policy log looked clean throughout, and the four operational steps to run today.
Short answer
- · CVE: CVE-2026-136998, CVSS 8.2, in Docker Sandboxes' built-in-services consent flow.
- · Affected versions: v0.43.0 through v0.54.x (v0.43.0 introduced the consent mechanism).
- · Fix: v0.55.0, released 30 November 2026.
- · Attack path: approval was bound to the service name only. A new build of the kit behind the service name silently inherited the approval, and could redirect credential-bearing requests to an attacker host.
- · Credentials at risk: Anthropic, OpenAI, GitHub, and every other provider whose kit a developer had previously approved.
- · Discovered by: Peyton Kennedy of Endor Labs.
- · Policy log: looks normal. The attacker never did anything the log is designed to catch.
How Docker Sandboxes injects credentials
Docker Sandboxes is the microVM runtime developers use to run AI coding agents locally. The product's selling point is that agents can call authenticated services — Anthropic, OpenAI, GitHub, Slack, Jira, 10 others — without having the developer's real API keys inside the microVM itself.
The mechanism:
- The agent kit, running inside the microVM, uses placeholder keys for the services it wants to call.
- The agent calls the service through a host-side proxy that Docker Sandboxes runs on the developer's machine.
- At the proxy, the placeholder key is swapped for the developer's real key and the request goes out to the real provider endpoint.
- The first time an agent kit requests access to a service, the developer sees a consent prompt ("this agent wants to talk to Anthropic"). Approvals are stored for reuse.
On paper, this is good design: the real keys never leave the host, the microVM is sandboxed, and the developer can see what the agent is reaching for. In practice, the approval-storage step is where it went wrong.
The flaw: approval bound to service name, not to version or destination
The consent record stored only the service name the kit declared it wanted to reach (e.g. anthropic). Two things it did not bind to:
- The kit's version / content hash. When the built-in agent kit updated (automatically, as kits do), the approval was reused as-is. The new build was treated as trusted because the service name hadn't changed.
- The destinations the approval covered. The approval said "this kit may reach
anthropic" — not "this kit may reachapi.anthropic.com." If the updated kit redirected traffic to a different host, the proxy still injected the real Anthropic key before sending it.
Put together, a malicious update to a built-in kit — or a compromised supply chain for the kit source — could cause the host-side proxy to inject a real Anthropic / OpenAI / GitHub key into a request destined for attacker.example. The developer never saw a second consent prompt. The policy log never recorded an anomaly. The sandbox itself was unbroken.
Why the policy log looks normal
Every event the policy log cares about happened legitimately at some earlier point: the developer did approve this service, for this kit identity, in the past. The log doesn't record kit-version changes because the consent model didn't consider them a security-relevant event. Each outbound request matched an approval in storage, so the proxy did exactly what it was built to do. The attack is in the mismatch between what the developer thought they were approving and what was actually bound to the consent record.
Affected versions and fix
- v0.43.0 — introduced the consent mechanism; first vulnerable version.
- v0.43.0 – v0.54.x — all vulnerable.
- v0.55.0 (30 Nov 2026) — fixed. Approvals now bind to kit version and approved destinations; kit updates re-prompt for consent.
Endor Labs reported the issue; the public exploit path was demonstrated only against Anthropic's injection flow, but all 13 built-in services share the same consent mechanism and are affected identically on vulnerable versions.
What to do now
- Upgrade to v0.55.0. Across every developer workstation that runs Docker Sandboxes. Confirm the version in
docker sandbox --version; mandate via MDM / fleet management if you have it. - Review third-party credential approvals. List every approval your Docker Sandboxes install currently holds. Revoke anything stale, anything whose source kit identity is unfamiliar, and anything that hasn't been exercised in 30 days.
- Pin agent kits to fixed commits. Where supported, pin the kit by content hash (not by a mutable tag or by "latest") so a compromised kit-source cannot silently update the thing you approved.
- Scope credentials to individual sandboxes. Use short-lived, per-sandbox credentials rather than long-lived personal keys. For GitHub, that means fine-grained PATs or GitHub App installation tokens; for Anthropic / OpenAI, that means gateway tokens via a shared vault-stored provider key (see our agents-without-secrets approach).
- Rotate any key an approved kit could have sent. Anthropic, OpenAI, GitHub, every other provider the kit touched. Assume any key reachable by an approved kit from v0.43.0 onward may have been sent somewhere. The cost of rotation is hours; the cost of a leaked Anthropic key funding attacker loops is a cloud bill.
The general lesson: bind approvals to version and destination, not service name
Every system that mediates credential injection on behalf of an AI agent has this same risk shape. Consent records that bind to what the request claims to be — service name, "this is for Anthropic" — but not to which code sends it or which host receives it are structurally vulnerable to update-time compromise. Three design properties to require from any agent-credential-injection system:
- Version-bound consent. Approve a specific kit by content hash. Updates re-prompt.
- Destination-bound consent. Approve specific hostnames. Egress to any other host is denied, not approved by default.
- Short-lived, per-sandbox injection. The real key is never the one the proxy is swapping in across sessions; it is a short-lived derived credential that the backend can revoke independently.
The AI agent security checklist (five gates: inventory, least privilege, kill switch, secret rotation, spend limits) covers the surrounding controls. The Docker Sandboxes flaw is a worked example of what happens when the second and fourth gates aren't both enforced.
Where TigerGate helps
- Code Security & Secrets Scanning catches long-lived Anthropic, OpenAI and GitHub keys in source, CI logs and container images — the reservoir of keys a compromised Docker Sandboxes install could reach for injection.
- Shadow AI detection and developer-laptop discovery inventory the AI agent tooling installed across your developer fleet — the prerequisite to knowing whether Docker Sandboxes is in use at all, and at what version.
- Secrets-management best practices — the organisational discipline that makes step 5 (rotate every reachable key) a 20-minute drill rather than a two-week fire.
- Supply-chain-attack prevention — the broader pattern that kit-update compromise fits into.
Note: TigerGate's ability to detect specific Docker Sandboxes binary versions on developer laptops depends on your deployment of our endpoint tooling; confirm scope with your account team before relying on it as a control. The secrets-scanning, shadow-AI-discovery and supply-chain pieces above are standard product capabilities.
FAQ
Related reading
Source
- CSO Online: Docker flaw lets Anthropic, OpenAI, GitHub keys slip past sandboxes (2 December 2026, secondary)
- Endor Labs advisory (Peyton Kennedy) — check vendor channels for the primary disclosure.
Find exposed AI-provider keys across your developer fleet
14-day trial. TigerGate inventories AI tooling on developer laptops, scans repos and CI for exposed Anthropic / OpenAI / GitHub keys, and maps the agent credentials that a Docker Sandboxes-shape compromise would reach for.