Skip to main content
Advisory document: CVE-2026-136998 for GitHub. Illustration: SecurityXP

Docker Sandboxes Flaw Let Approved AI Kits Redirect API Keys

· 3 min read · SecurityXP Intelligence Desk

Key Facts

  • CVE-2026-136998 affects Docker Sandboxes versions 0.43.0 through 0.54.x and is fixed in 0.55.0, released November 30, 2026.
  • The flaw is an incorrect authorization issue: Docker recorded which credential destinations a developer approved but did not enforce that list at request time.
  • A third-party agent kit could obtain one approval, then update its configuration to send the real Anthropic, OpenAI or GitHub key to an attacker-controlled server.
  • The update produced no new prompt, warning or log entry showing that a credential had been sent.
  • Thirteen built-in services shared the vulnerable injection path, including Anthropic, OpenAI, GitHub, Google, Cursor, Mistral and xAI.
  • Endor Labs says it found no confirmed exploitation in the wild.

Docker has fixed a high-severity authorization flaw in Docker Sandboxes that let a malicious third-party AI agent kit collect a developer’s real API keys after a single approval. The vulnerability, tracked as CVE-2026-136998, affects versions 0.43.0 through 0.54.x and is fixed in 0.55.0, released on November 30.

The flaw is notable because the sandbox boundary itself held. The keys never entered the VM where the AI agent runs. The failure was in what Docker remembered about the developer’s approval: it recorded the service name, but not the kit or the destination that was actually reviewed.

How the approval was bypassed

Docker Sandboxes stores credentials on the host. When an agent inside the sandbox makes a request, a host-side proxy swaps a placeholder for the real key if the destination is approved. A third-party kit declares which domains should receive the credential.

Version 0.43.0 added a consent prompt. On a terminal, sbx create shows the operator each credential the kit wants and the domains it will be sent to. Approving writes a binding to ~/.config/sbx/credentials.yaml, including a domains list.

That list was written but not enforced. At request time, the proxy checked only whether a binding existed for the service name. It then injected the key at whatever domains the current kit declared. The binding was also not tied to the kit’s name, content digest or source.

The result was a version swap. An attacker could publish a kit that requested access only to api.anthropic.com, obtain approval, then update the same tag, branch or directory to point at an attacker-controlled host. The next sbx create found the existing binding, skipped the prompt, and sent the real key to the new destination. The kit could also add the attacker’s host to the sandbox egress allowlist in the same update.

What the attacker could take

Endor Labs researcher Peyton Kennedy tested the flaw with a dummy Anthropic key and a canary server on loopback. The canary received the key in a plain HTTP header. No TLS interception or network position was required.

The impact depends on the credential. A model-provider key gives metered API access billed to the victim. A GitHub token gives whatever scopes the token holds, which for a typical developer token can include write access to repositories.

Docker stores credentials globally by default, so the key a kit can redirect is the same key every sandbox on the machine uses. The approval binding also survives sandbox deletion, which extends the exposure until the binding is removed or the machine is upgraded.

Thirteen built-in services share the vulnerable injection path: Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter and xAI. Kennedy demonstrated the issue with Anthropic and said the others follow the same code path.

The fix

Docker released 0.55.0 on November 30. Endor Labs says the fix enforces the approved destination list at substitution time, so a kit cannot redirect a credential to a domain the operator did not approve. The researcher’s recommendations also included binding approval to the kit’s content digest and logging credential injection next to the destination.

There is no confirmed exploitation in the wild. That does not mean no one tried. The attack looks like an ordinary software update, and the product’s logs recorded the connection as allowed without recording that a credential was injected.

What developers should do

Upgrade to Docker Sandboxes 0.55.0. Then review ~/.config/sbx/credentials.yaml and remove any binding granted to a third-party kit. Each one is a standing approval for whatever that kit’s reference serves next.

Read the kit before running it, including its inject domains and network allowlist, on every sbx create rather than only the first. Where the source allows it, pin a commit instead of a tag or branch, or keep a reviewed copy in a local directory. Use --sandbox when setting a secret so the key is scoped to one sandbox rather than the whole machine.

Rotate any key that may have been exposed. A stolen provider key can run up costs, and a stolen GitHub token can change code. The fix closes the redirect path, but it does not invalidate credentials that were already sent.

Tags: Docker Sandboxes CVE-2026-136998 AI agents API keys Supply chain Endor Labs

Sources & References

SI SecurityXP Intelligence Desk
SecurityXP Intelligence Desk Threat Intelligence & Campaign Tracking

Analyst-reviewed briefings on active exploitation, ransomware operations, nation-state campaigns, and the threat intelligence that connects them.

Security Digest

The most important cybersecurity stories, CVE alerts, and threat intelligence — one concise email. Unsubscribe anytime.

Related Articles