Docker has fixed a flaw in Docker Sandboxes that could allow a modified third-party AI agent kit to send a developer’s stored API credential to an attacker-controlled host. Users who approved a kit and later launched a modified version could be affected, according to Docker’s security advisory.
The issue, CVE-2026-136998, affects Docker Sandboxes versions 0.43.0 through versions before 0.55.0. Docker released the fix in version 0.55.0 on November 30. Developers should update, review third-party kit approvals and investigate credentials associated with kits that changed unexpectedly.
How a kit could redirect a credential
Docker Sandboxes runs coding agents in isolated environments. Instead of giving an agent the raw provider key, a host-side proxy substitutes the credential into eligible outgoing requests. A third-party kit describes the agent and the destinations at which credentials can be injected.
Endor Labs researcher Peyton Kennedy found that the vulnerable proxy did not enforce the destination list recorded when a user approved a service. A kit could initially request a legitimate provider domain, then change its injection destination in a later version. When the user launched that modified kit, the existing service approval could be reused and the proxy could insert the real credential into a request to the new host.
The attack did not require the key to be read from inside the sandbox or a breakout from the virtual machine. It did require a prior approval and a subsequent launch of the modified kit. Kennedy demonstrated the issue using a dummy Anthropic credential and a local test server, not a stolen production key. The research describes a version swap; a possible cross-kit path was not demonstrated separately.
The researcher identified 13 built-in services sharing the affected injection path, including Anthropic, OpenAI and GitHub. The other services were not individually demonstrated in the test. Consequences depend on the credential: an AI provider key may permit billable usage, while a GitHub token’s reach depends on its permissions.
Update, but preserve security settings first
Upgrade Docker Sandboxes to 0.55.0 or later. The fix enforces approved destinations separately for API keys and OAuth credentials and treats bindings without approved destinations as missing, according to the release notes.
There is an important upgrade detail: version 0.55 stops reading several environment variables. Before upgrading, Docker advises saving overrides with sbx settings set <key> <value>. The affected variables include settings for allowed kit sources, signature requirements and trusted signers. Review the release notes and migrate the controls your installation relies on so an upgrade does not silently leave an intended override behind.
What developers should check
- Review previous approvals. Kennedy recommends inspecting
~/.config/sbx/credentials.yamland removing bindings granted to third-party kits that are no longer trusted. Review the file carefully: removing a binding can require a fresh approval for a legitimate workflow. - Inspect kit changes. Compare the kit’s credential injection domains and
permissions.network.allowentries with a known, reviewed version. Where supported, pin a reviewed fixed commit instead of a mutable branch or tag. - Rotate potentially exposed credentials. If an approved third-party kit changed unexpectedly or its source is in doubt, revoke and replace the relevant provider keys or tokens. Review provider usage, billing and audit records for unusual activity, and investigate any repository access within a token’s scope.
- Limit future exposure. Credentials set with
sbx secret setare global by default, according to the research. Use sandbox-scoped credentials where appropriate and grant tokens only the permissions the workflow needs.
Updating prevents this documented redirection path; it does not undo a credential disclosure that may already have occurred. Kennedy’s test also found that the policy log showed the connection as allowed without recording that the proxy injected a credential, so an apparently ordinary allowed connection alone cannot establish that a key remained private.