A Docker Sandboxes vulnerability tracked as CVE-2026-136998 let a modified third party agent kit reuse an earlier approval and send a developer’s stored API key to a server the attacker controls. The flaw was described in a technical write up by Endor Labs and fixed in Docker Sandboxes version 0.55.0.

The key detail is that approval was tied to a service name, not to the kit or to the destination domains. Once a developer approved a kit that injected a key for a provider such as Anthropic, a later version of the same kit could change the destination and get the real key without a new prompt. Endor Labs scored the issue 8.2 (High) under CVSS 3.1.

Developers and platform teams who run AI coding agents in Docker Sandboxes, and who load kits from shared repositories, should pay attention. The same logic applies to anyone who stores provider keys on a machine where agents run.

Docker Sandboxes Vulnerability: Key Takeaway

  • Approving a kit once was enough for a changed version of that kit to receive the stored API key, so anyone using Docker Sandboxes should move to version 0.55.0 and review their approvals.

Keep track of what is exposed in your environment. Tenable offers vulnerability management, which helps teams find and prioritise software that needs patching, such as developer tooling that is out of date.

Get expert help when a key may be exposed. CrowdStrike provides AI native cybersecurity software and incident response services for teams that need support investigating a possible credential leak.

What Happened: A Kit Update Redirected a Stored Key

Docker Sandboxes runs AI coding agents inside a microVM. The real provider key stays on the host. Inside the sandbox, the agent sends a placeholder header, and a host proxy swaps in the real key for requests to approved domains.

How the credential design works

Agent kits decide which domains receive a key. Kits are fetched by reference, such as a tag, a branch or a directory. Docker’s credentials documentation says approvals are stored in a local file, ~/.config/sbx/credentials.yaml on macOS and Linux, and that this file holds approvals, not secrets.

Where the check failed

According to Endor Labs, version 0.43.0 added a consent prompt. Approval wrote a binding that recorded the service and its domains. Two problems followed:

  • The domains list was written but never read. At request time the check only asked whether a binding existed for the service name, so the proxy injected the real key at whatever domain the current kit declared.
  • The binding was not tied to a kit name, digest or source. Approval for one version carried over to later versions from the same reference.

Timeline

Endor Labs reports that it reported the flaw to Docker on September 21, 2026. Docker’s release notes list the fix in version 0.55.0, dated November 30, 2026. The Docker release page on GitHub shows the same release on the same day, with a security and credentials section. That page does not name the CVE, so the link between release and CVE rests on Docker’s release notes.

Endor Labs researcher Peyton Kennedy is credited with the discovery. The Hacker News says Kennedy also found an earlier file copy flaw, CVE-2026-103916, fixed in version 0.51.0 on November 3.

Attack Chain and Technical Details

Endor Labs describes the attack in five steps:

  1. The attacker publishes kit version 1, with an inject block that names only api.anthropic.com.
  2. The developer runs sbx create, sees an accurate prompt and approves. A binding is written.
  3. The attacker ships version 2 at the same reference. The only change is that the inject domain is now an attacker host.
  4. The next sbx create finds a binding for the service and passes without a prompt.
  5. The proxy substitutes the real key into requests sent to the attacker host.

Endor Labs also says network allow entries declared by a kit are applied without a prompt, so version 2 can add the attacker host to the egress allowlist. The binding survived sandbox deletion, and the policy log recorded the connection as allowed without noting that a key was injected.

Scores and affected services

Endor Labs lists CVSS 3.1 at 8.2 (High) and CVSS 4.0 at 6.9 (Medium). It says it first scored the issue 9.3 before correcting the attack vector from network to local. The Hacker News reports a vendor CVSS 4.0 score of 5.6, which the Endor Labs page does not mention. Thirteen built in services share the injection path: Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter and xAI. Endor Labs tested only Anthropic, using a dummy key.

Who Is Affected

Anyone using Docker Sandboxes who approved a third party kit that injects a provider key is the main group at risk. Exploitation needed prior approval and the launch of the modified kit, according to Docker’s release notes.

Sources disagree on the affected range. Endor Labs says version 0.43.0 is affected and earlier versions are not, because no binding mechanism existed. The Hacker News says every version before 0.55.0 is affected on macOS, Windows and Linux, citing the CVE record. Endor Labs tested only macOS. The CVE record could not be loaded for this article, so the range is not settled.

Steps Administrators Can Take

Docker’s fix, as described in its release notes, makes credential injection enforce the approved destinations, and treats bindings with no approved destinations as missing. From Endor Labs and Docker:

  • Upgrade to Docker Sandboxes 0.55.0 or later.
  • Remove bindings for third party kits from credentials.yaml and approve again after review.
  • Read each kit’s inject domains and network allow entries on every sbx create.
  • Pin kits to a commit or keep a reviewed local copy.
  • Scope keys to one sandbox with sbx secret set <service> --sandbox <name>, because secrets are global by default.
  • Rotate provider keys if an approved kit changed after approval.

As general hardening ideas that are not statements from the sources, keep separate low limit keys for agent work and watch provider usage logs for unfamiliar activity.

Implications

Consent prompts need to be bound to content

The flaw shows that a consent prompt is only as strong as what it binds to. Approval tied to a service name told the developer one thing and enforced another. Endor Labs recommends binding approval to the kit’s content digest.

Agent kits are a supply chain

Kits fetched by mutable references behave like any package pulled by tag or branch. A trusted publisher can ship a changed version later. Teams that already track package risk, as in the Nx supply chain breach, should treat kits the same way.

Secrets proxies shift trust to the proxy rules

Keeping keys outside the sandbox reduces what a compromised agent can read. It also means the host proxy rules decide where keys go. The related risks of agents acting on untrusted input are covered in our look at prompt injection risks in AI systems.

Show that your controls hold up. CyberUpgrade provides cybersecurity compliance and management tooling that helps teams document and track how secrets and developer tools are governed.

Looking Forward

Docker has shipped the destination enforcement. Endor Labs also suggested binding approvals to a kit digest and logging every injection. Docker’s release notes confirm the destination fix but do not mention those two changes.

Several points remain open. The CVE record could not be read, so the affected range and the vendor score are unconfirmed. Docker’s notes also say external endpoints must now use HTTPS to receive host credentials, while the Endor Labs proof of concept used plain HTTP, so how the test behaves on 0.55.0 is not confirmed. The Hacker News says no attacks using the flaw have been reported.

Questions Worth Answering

What is CVE-2026-136998?

  • It is an incorrect authorization flaw (CWE-863) in Docker Sandboxes that let a modified agent kit receive a stored provider API key at an attacker chosen domain.

Which Docker Sandboxes version fixes it?

  • Version 0.55.0 includes the fix, according to Docker’s release notes dated November 30, 2026.

Who found the Docker Sandboxes vulnerability?

  • Peyton Kennedy of Endor Labs, who reported it to Docker on September 21, 2026.

How severe is CVE-2026-136998?

  • Endor Labs lists 8.2 (High) under CVSS 3.1 and 6.9 (Medium) under CVSS 4.0, and The Hacker News cites a vendor score of 5.6.

Is the flaw being exploited?

  • The Hacker News says no attacks using it have been reported, and the Endor Labs page does not state otherwise.

Does the attacker need access to my machine?

  • Exploitation needed the developer to approve a kit first and then launch a modified version of it, per Docker’s release notes.

Which API keys could leak?

  • Keys for the 13 built in services that share the injection path, though Endor Labs tested only the Anthropic path with a dummy key.

Where does Docker store approvals?

  • In ~/.config/sbx/credentials.yaml, or %APPDATA%\sbx\credentials.yaml on Windows, and the file stores approvals rather than secrets.

Should I rotate my keys?

  • Endor Labs advises rotating provider keys if an approved kit later changed, after you upgrade and remove old bindings.

More tools worth a look: 1Password for logins, Optery for personal data removal and EasyDMARC for spoofed email.

Leave a Comment

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list for the latest news and updates.

You have Successfully Subscribed!

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More