BlogVulnerability Research

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.

8 min readBy TigerGate Research, Security Research TeamPublished Updated

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:

  1. The agent kit, running inside the microVM, uses placeholder keys for the services it wants to call.
  2. The agent calls the service through a host-side proxy that Docker Sandboxes runs on the developer's machine.
  3. At the proxy, the placeholder key is swapped for the developer's real key and the request goes out to the real provider endpoint.
  4. 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 reach api.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

  1. 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.
  2. 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.
  3. 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.
  4. 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).
  5. 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

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

Versions from v0.43.0 up to v0.54.x — v0.43.0 introduced the consent mechanism whose flaw is CVE-2026-136998. The fix is v0.55.0, released 30 November 2026.
No. The attacker needs neither machine access nor a sandbox escape. The flaw is in how one-time approvals were reused after a built-in agent kit changed — approval was bound to the service name only, not to the kit's version or to the approved destinations. An updated kit silently inherited the approval.
Four steps: upgrade to v0.55.0 immediately; review every third-party credential approval granted to Docker Sandboxes; pin agent kits to fixed commit hashes rather than mutable tags; scope credentials to individual sandboxes rather than broad accounts; and rotate any key that an approved kit could have sent — Anthropic, OpenAI, GitHub, and any provider the kit touched.
All 13 built-in services that Docker Sandboxes ships. The public exploit path was demonstrated against the Anthropic injection flow, but any of the 13 could be weaponised the same way on vulnerable versions.
Because the approval was legitimately granted at some point in the past. The log shows a consent event that existed, and a request that matches the service name on the approval. The attacker's trick is to change what sits behind the service name after consent was given, which the log has no mechanism to detect.
No. Anthropic, OpenAI and GitHub did nothing wrong. The flaw is entirely in Docker Sandboxes' consent model, which Endor Labs' research exposed. The AI providers are mentioned because their credentials were the valuable loot.

Related reading

Source

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.