Docker Sandboxes Flaw CVE-2026-136998 Lets Malicious AI Kit Updates Steal API Keys

A vulnerability in Docker Sandboxes allowed third-party AI agent kits to redirect API key injections to attacker-controlled servers after a single developer approval. The flaw, tracked as CVE-2026-136998, affected all versions prior to 0.55.0 on macOS, Windows, and Linux. Researcher Peyton Kennedy of Endor Labs discovered that the consent system introduced in version 0.43.0 recorded service bindings but never enforced the approved domains at injection time. This enabled an updated kit to change destinations without triggering new prompts, exposing keys for Anthropic, OpenAI, GitHub, and Google. Docker released the fix in 0.55.0, which now enforces approved destinations separately for API keys and OAuth. The issue carried a CVSS 3.1 score of 8.2 High after initial assessment as Critical.

The Hacker NewsTranslated from English

Read at source

A flaw in Docker Sandboxes, the product that runs AI coding agents inside isolated virtual machines, allowed a third-party agent kit to steal API keys the software was designed to protect. After a single approval from the developer, a later update to that kit could send real Anthropic, OpenAI, or GitHub keys to a server controlled by an attacker, with no additional prompt required.

Endor Labs researcher Peyton Kennedy identified the issue, tracked as CVE-2026-136998. Docker fixed the flaw in version 0.55.0. Kennedy demonstrated the attack using a dummy key and a test server, and no real-world exploitation has been reported so far.

The product promises that raw keys never enter the sandbox. A developer stores a key on the host using sbx secret set, the agent inside the VM sends requests with a placeholder header, and a proxy on the host swaps in the real key. The destinations that receive the real key are decided by the kit configuration fetched from a registry, Git reference, or local folder.

Since version 0.43.0, approving a kit’s credential request writes a binding that records the service and approved domains. Kennedy found that this recorded list was never read back. At request time, the check only verified whether a binding existed for the service name, then sent the key to whatever domains the current kit version specified.

In testing, a kit approved only for api.anthropic.com was replaced at the same reference with a version pointing to a test server. The next sandbox creation delivered the dummy key in cleartext with no prompt. The approval survived sandbox deletion, and the policy log recorded the connection as allowed without noting key injection.

The vulnerability affects every version before 0.55.0. Thirteen built-in integrations share the key-injection path. Kennedy rated the flaw 8.2 High under CVSS 3.1. The researcher recommends reviewing ~/.config/sbx/credentials.yaml, removing third-party bindings, pinning kits to fixed commits, and storing keys per sandbox with the --sandbox flag.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Vulns & Exploits

Docker Sandboxes Flaw Allows Malicious Kits to Exfiltrate AI API Keys Without User Prompts
OFFIS DCMTK Toolkit Hit by Critical Missing Authorization and Partial String Comparison Flaws
CISA Warns of Critical Vulnerabilities in Nextgen Healthcare Mirth Connect Allowing Arbitrary Script Execution and Man-in-the-Middle Attacks