The CVE-2026-136998 vulnerability in Docker Sandboxes — a tool for running AI agents in isolated virtual machines — allowed a modified third-party kit (an agent configuration package) to redirect real Anthropic, OpenAI, GitHub and other providers’ API keys to a server controlled by an attacker. To exploit the issue, it was enough for a developer to approve the kit once: a subsequent kit update could change the destination address without prompting for approval again. Docker fixed the issue in version 0.55.0, released on November 30, 2026. No instances of exploitation in real-world attacks had been observed at the time of publication.
Vulnerability mechanism
The architecture of Docker Sandboxes is designed so that real credentials never enter the virtual machine. According to the Docker documentation, a developer stores a key on the host with the sbx secret set command, the agent inside the sandbox sends requests with a placeholder header, and a proxy on the host injects the real key into the outgoing request. Which domains receive the real key is defined in the kit configuration.
Starting with version 0.43.0, when a kit was approved the system recorded a binding that locked in the service name and the list of domains that the developer had approved. However, according to researcher Peyton Kennedy from Endor Labs, this recorded list of domains was never actually checked when requests were sent. At the moment of key injection, the check was reduced to a single question: does a binding exist for this service name? If it did, the proxy would send the real key to any domains specified in the current version of the kit, regardless of which domains were originally approved.
The vulnerability is classified as CWE-863: Incorrect Authorization. The virtual machine boundary itself was not broken; the issue lay in what the developer’s approval was actually bound to.
Attack scenario
According to the technical analysis by Endor Labs, the attack looks as follows:
- The developer approves a third-party kit that specifies, for example,
api.anthropic.comas the only domain for key injection. - The attacker publishes an updated version of the kit under the same tag, branch, or in the same directory, replacing the injection domain with their own server.
- On the next
sbx createrun, the system finds an existing binding for the service and shows neither a confirmation prompt nor a warning nor a diff of the changes. - The proxy injects the real key into requests to the attacker’s server.
In the demonstration, the researcher used a test key and a local decoy server — no real keys or external hosts were involved. The key was transmitted in cleartext over HTTP. In addition, the modified kit could independently add its own server to the sandbox’s network allowlist without an extra prompt. The policy log recorded the connection as allowed while not marking the fact that credentials had been injected.
Affected versions and severity assessment
According to the researcher, the vulnerability affects Docker Sandboxes versions from 0.43.0 (when the consent mechanism was introduced) through 0.55.0. In its release notes, Docker confirms that the issue is fixed in version 0.55.0.
The Endor Labs researcher rates the vulnerability as 8.2 (High) under CVSS 3.1 and 6.9 (Medium) under CVSS 4.0. It should be noted that these are the researcher’s scores, not an agreed consensus rating. The source material attributes a 5.6 (Medium) CVSS 4.0 score to Docker, but this figure has not been independently verified against the official CVE entry. The discrepancy stems from whether the baseline score accounts for the impact on the provider account associated with the stolen key.
According to the researcher, all 13 built-in integrations — Anthropic, Copilot, Cursor, Devin, Droid, GitHub, Google, Groq, Mistral, Nebius, OpenAI, OpenRouter and xAI — use the same key injection path, although only the Anthropic integration was directly demonstrated. The CVE-2026-136998 entry is not listed in the CISA Known Exploited Vulnerabilities catalog.
Impact scope
The research focused on the local product. Docker’s documentation explicitly separates credential flows for local and cloud sandboxes, and it is unknown whether cloud sandboxes used the same vulnerable authorization logic.
A critical detail: according to Docker’s documentation, service secrets are global by default — a single redirected key is used by all sandboxes on the machine. This means the highest risk applies to configurations where a developer has previously approved a third-party kit and stores provider keys globally.
A stolen GitHub token, for example, grants access within its permissions, which for a typical developer token includes write access to repositories.
We previously wrote about a serious vulnerability in the Docker ecosystem — the image substitution issue in Docker Hub. The current vulnerability affects a different product from the same company but demonstrates a similar pattern: a trust mechanism that is not bound to the specific content of an artifact.
Detection and logging limitations
The standard Docker Sandboxes policy logs are insufficient to detect this attack. According to the researcher, the log records the connection to the attacker’s server as allowed and does not log the fact that credentials were injected. Detection requires correlating the injection domains declared by the kit with the domains previously approved and the entries in the policy log.
Recommendations
Upgrading to version 0.55.0 removes the vulnerability. In this version, credential injection now separately validates the approved destination domains for API keys and OAuth tokens, and a binding without specified domains is treated as nonexistent.
For machines on earlier versions, and for anyone who provided credentials to third-party kits during the vulnerable period:
- Review the approvals file
~/.config/sbx/credentials.yaml(or%APPDATA%\\sbx\\credentials.yamlon Windows) and remove bindings issued to third-party kits. - On each
sbx createrun, check the kit’s injection domains and thepermissions.network.allowentries, not just at the first approval. - Pin kits to a specific commit or store a vetted copy in a local folder.
- Use the
--sandboxflag to store keys within a specific sandbox instead of globally. - Rotate provider keys associated with any approved third-party kit that may have been updated.
The researcher also suggested that Docker bind approvals to the kit content digest and log every key injection in the policy log. The published 0.55.0 release notes confirm only the destination domain checks and do not mention these two additional changes. Developers using Docker Sandboxes with third-party kits should upgrade to version 0.55.0 and rotate any provider keys that may have been compromised via previously approved kits.












