CVE-2026-138001: Docker Sandboxes custom-secret disclosure through reflected request headers
Docker Sandboxes versions since 0.27.0, before 0.55.0 substituted custom-secret placeholders in arbitrary outbound request headers without restricting the destination header or removing reflected values from responses. Code running inside a sandbox could recover a host-held secret by placing its placeholder in a header that an allowed upstream service echoes. Exploitation requires a configured custom secret and a reachable service that reflects the substituted value. The issue is fixed in Docker Sandboxes 0.55.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Docker Sandboxesto a version that resolves this vulnerability.Fixed in 0.55.0
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments using Docker Sandboxes from 0.27.0 through versions before 0.55.0 are affected if they have a custom secret configured. Exploitation also depends on a reachable upstream service that reflects a substituted request-header value.
What capabilities does an attacker need?
The attacker needs to run code inside a sandbox. That code must be able to send a request to an allowed, reachable upstream service that echoes the relevant header value in its response.
How can I determine whether a sandbox may have exposed a secret?
Check whether the deployment runs a version before 0.55.0 and has custom secrets configured. Then identify whether sandbox code can reach an upstream service that reflects request headers or substituted header values in responses.
What is the available remediation?
Upgrade Docker Sandboxes to version 0.55.0, which fixes the issue. The provided information does not specify an alternative workaround for deployments that cannot yet upgrade.