If your developers run AI coding agents in Docker Sandboxes and have approved any third-party kit, a later update to that kit could have sent their real Anthropic, OpenAI or GitHub keys to an attacker without a single new prompt. Docker fixed the flaw in version 0.55.0, so upgrading and rotating exposed credentials are the immediate jobs. The bigger lesson reaches beyond Docker: an approval that does not bind to what was actually inspected protects very little.

What happened

The Hacker News reports that Endor Labs researcher Peyton Kennedy found the flaw, tracked as CVE-2026-136998. Docker Sandboxes runs coding agents inside isolated virtual machines and keeps real keys on the host. A proxy swaps in the genuine key only when a request leaves the sandbox, so the agent never holds it.

The weak point was the kit, a packaged agent configuration pulled from a registry, a Git reference or a local folder. Since version 0.43.0, approving a kit’s credential request recorded which service and domains the developer accepted. According to Kennedy, the system never read those domains back. It only confirmed that an approval existed for the service, then sent the key to whatever destinations the current kit version named.

In his test with a dummy key, Kennedy approved a kit for api.anthropic.com only, then replaced it at the same reference with a version pointing at a test server. The key reached that server in cleartext with no prompt, and the approval survived deleting the sandbox. The policy log showed the connection as allowed and did not mention key injection. No attacks have been reported. The flaw affects all versions before 0.55.0 on macOS, Windows and Linux. Thirteen built-in integrations share the key-injection path, but Kennedy tested only Anthropic, so the research does not show all 13 as exploitable.

Why it matters

The virtual machine boundary held in this case, and Kennedy says it also held in his earlier file-copy finding, fixed on November 3. He reported both bugs to Docker on September 21. The failure sat in the consent layer. This suggests that as agent tooling matures, the soft controls around isolation, such as prompts, bindings and allowlists, will draw as much attacker attention as the isolation itself.

It also shows a supply chain pattern familiar from package registries and CI pipelines. A publisher earns trust once, then ships a changed version that inherits it. Kennedy’s own summary is blunt: a prompt is only as strong as what its answer is bound to. The attacker never needs access to the developer’s computer, but the developer must first approve a third-party kit, and the attacker then needs only one changed line in a later release.

Severity scores vary by version and by who scored. Kennedy rates the flaw 8.2 High under CVSS 3.1, after he first scored it 9.3 Critical and corrected the attack vector to local. Under CVSS 4.0 his score is 6.9 and Docker’s is 5.6, both Medium. The two vectors differ on whether harm to the provider account behind a stolen key counts in the base score. Teams should weigh the exposure by what their keys can do, not by the label. Our cybersecurity coverage tracks similar trust-chain failures.

What it means for you

  • Upgrade now. Move every machine to Docker Sandboxes 0.55.0 or later. The release enforces approved destinations separately for API keys and OAuth.
  • Inventory kits. Find which developers approved third-party kits while on an older version, and which services those kits could reach.
  • Rotate exposed secrets. Anything stored with sbx secret set is global by default, so one redirected key affects every sandbox on that machine. Prioritise GitHub tokens, since typical scopes include write access to repositories.
  • Scope and cap keys. Use narrow token scopes and spending limits on provider accounts, so a leak costs less.
  • Ask your vendor. Kennedy asked Docker to tie approvals to a kit’s content digest and log every key injection. Docker’s release notes confirm destination enforcement but not those two changes, so treat kit updates as unreviewed code and prefer pinned or internally hosted kits.

Apply the same test to every agent tool you buy: does an approval attach to a specific, inspected version, and does the audit trail show when a secret is used?

What to watch

  • Whether Docker adds digest-bound approvals and key-injection logging in a later release.
  • Any report of real attacks using malicious kit updates, since none has surfaced so far.
  • Whether Docker’s cloud sandboxes, which keep a separate secret store, share the affected logic. Nobody has established that yet.
  • Whether other agent sandboxes face scrutiny of how their consent prompts bind to updates.

Sources