Docker Sandboxes Fixes Credential Injection Flaw in Version 0.55.0
CVE-2026-136998 could expose API keys through changed agent kits. Docker fixed the flaw in Sandboxes v0.55.0; teams should review approvals and rotate at-risk keys.

A one-time credential approval in Docker Sandboxes could remain valid after an AI agent kit changed where it sent requests. That gap let a modified kit redirect real API keys to an attacker-controlled server without triggering another consent prompt. Docker fixed the high-severity vulnerability in Docker Sandboxes v0.55.0, released November 30, 2026.
The issue, tracked as CVE-2026-136998, has a CVSS score of 8.2. It affects Docker Sandboxes versions introduced with v0.43.0, which added a consent mechanism for credentials requested by third-party agent kits. The exposure could include API keys for Anthropic and OpenAI, as well as GitHub tokens that may grant write access to repositories.
Why an earlier approval could outlive its destination
Docker Sandboxes are designed to keep raw credentials on the host rather than inside the microVM where an AI coding agent runs. Developers store secrets on the host with the “sbx secret set” command. When the agent makes an outgoing request, a host-side proxy substitutes the real credential for a placeholder and sends the request to its destination.
That arrangement makes the proxy’s destination checks central to protecting keys. With the consent feature introduced in v0.43.0, developers approve the credentials and destinations a third-party kit requests. But Peyton Kennedy of Endor Labs found that Docker tied the remembered authorization to a service name, rather than to the specific kit or its version. The kit could therefore change after the initial decision while retaining the authorization.
Docker stored the destinations approved by the developer in credentials.yaml, but the restrictions in that file were not enforced when the proxy injected credentials. In practice, the saved record of what a developer had approved did not constrain where the proxy could send the real key later.
An attacker could publish a kit that initially requested access to a legitimate service, such as api.anthropic.com. After a developer approved that request, the kit could be updated to send traffic to a server controlled by the attacker. When the developer later ran the changed kit, Docker recognized the existing authorization and did not display another consent prompt. The proxy then placed the real API key into the request headed to the substituted destination.
The attack did not require access to the developer’s machine or a break into the sandbox. Its leverage came from the difference between the destination a person approved and the destination Docker later permitted. That makes a seemingly routine kit update a possible point of exposure when a kit reference can change over time.
Testing showed the proxy could expose the real key
Kennedy reproduced the issue with a dummy Anthropic API key and a locally hosted canary server. The sandbox sent a placeholder credential, as intended, but the host-side proxy replaced it with the actual key before forwarding the request. The canary server received that key even though the developer had approved a different destination.
The demonstration established that the proxy’s substitution step could disclose a credential in cleartext to an unapproved destination. It did not demonstrate every service that uses the same mechanism. Kennedy confirmed the issue through Anthropic’s credential injection path; Docker Sandboxes has 13 built-in services that share the injection mechanism, and the other 12 were not independently demonstrated.
Credentials at risk can have different consequences depending on their scope. A provider API key may allow use of an account’s services, while a GitHub token with write permissions could expose repositories to unauthorized changes. The source material does not establish that every affected installation or credential was accessed, so the reported demonstration should be read as proof of the technical path, not evidence of widespread theft.
Logs may not show that a key was sent
The issue also complicates investigations. Docker’s sbx policy log records the connection to the destination as an allowed request, but does not identify that the proxy injected a credential. An administrator reviewing the log could see a permitted network connection without a clear indication that a real key left the host.
That limitation means ordinary policy-log review may not answer whether a credential was exposed. Teams assessing a potentially changed kit should consider the kit’s history, the destinations it contacted, and which secrets were available to its sandbox. The log can show that a connection was allowed, but the reported behavior means it may not, by itself, show whether that request carried an injected key.
Upgrade and review existing kit access
Docker addressed CVE-2026-136998 in Sandboxes v0.55.0. Teams running versions from v0.43.0 onward should check their installed version and plan to upgrade to the fixed release. Endor Labs also recommends reviewing existing third-party credential approvals, pinning kits to fixed commits instead of mutable references, and limiting credentials to individual sandboxes.
If a previously approved kit may have changed, rotate the credentials it could access. Rotation reduces the usefulness of a key that may already have been exposed; reviewing approvals and pinning kit versions can reduce the chance that a later change inherits trust from an earlier one. For administrators, the practical check is whether the installed Sandboxes version includes the fix and whether any credentials were available to mutable third-party kits.