Docker Sandboxes approved a credential once, then trusted a changed destination
Docker Sandboxes 0.43.0 through versions before 0.55.0 recorded approved credential destinations but did not enforce them during proxy substitution for third-party kits. CVE-2026-136998 describes a modified kit that reuses an existing service binding while changing the credential injection destination. The result can be disclosure of a stored provider credential to an attacker-controlled host.
The trust gap
Approval is meant to bind a service, a credential, and a destination. When an update changes the destination, the old approval is no longer equivalent. The vulnerable proxy treated the service binding as reusable even though the routing target had changed.
Docker states that exploitation required the user to have approved the service previously and then launch the modified kit. This is a supply-chain and local-development scenario. The affected environments run AI coding agents that may hold GitHub, model-provider, or other API credentials.
Upgrade and contain
Upgrade Docker Sandboxes to 0.55.0 or later. Review third-party kits, their source, update history, and requested service bindings. Remove kits that are unmaintained or whose publisher cannot be verified.
Rotate provider credentials that may have been exposed and review provider audit logs for calls from unexpected source addresses, new user agents, or unusual token use. Restore the sandbox from a known-good image if a modified kit was launched while the vulnerable version was active.
Strengthen approval semantics
A credential approval should be tied to the exact service, destination, kit identity, and version or digest. Any change to the destination should invalidate the approval and require a new review. Show the destination in human-readable form at approval time and record it in an auditable local log.
For teams, separate credentials by environment and provider, set short expirations, and use dedicated keys for agent kits. A central proxy should reject a request when the runtime destination differs from the stored consent, even if the service name is unchanged.
Top comments (1)
Good writeup. One thing I'd add to the approval semantics: compare the destination at the moment the credential is attached, on every request, and treat redirects as new destinations. A proxy that checks the first host and then follows a 302 with the header still injected has the same gap one hop later. Most HTTP clients drop Authorization on a cross-host redirect for exactly this reason. An injecting proxy needs the same rule, since the kit never sees the credential and can't strip it itself.