Docker Sandboxes: Review Permissions and Keys After CVE-2026-136998 Flaw

Docker Sandboxes: Review Permissions and Keys After CVE-2026-136998 Flaw

An update to a Docker Sandboxes kit could redirect API keys to an attacker-controlled server without requesting new authorization. Docker fixed the flaw, identified as CVE-2026-136998, in version 0.55.0, released on November 30, 2026.

The issue affects Docker Sandboxes running locally on macOS, Windows, and Linux, according to The Hacker News. The vulnerability was introduced in version 0.43.0; earlier versions did not have this specific flaw, although Endor Labs did not separately assess their exposure to other issues. It has not been established whether cloud sandboxes are affected.

How to tell if you are affected

Check which version of Docker Sandboxes you have. The fix is in version 0.55.0: any earlier version falls within the vulnerable range described in the CVE record cited by The Hacker News. If you cannot verify that the environment is up to date, treat it as requiring review.

The relevant risk does not depend solely on having a saved key. It arises if you approved credentials for a third-party kit and then ran an updated version of that kit while Docker Sandboxes was still vulnerable. The kit could change the destination domain and inherit the previous permission without showing another warning.

Among the 13 integrated services that share the mechanism are Anthropic, OpenAI, GitHub, Google, Copilot, Cursor, Devin, Droid, Groq, Mistral, Nebius, OpenRouter, and xAI. Endor Labs tested Anthropic with a fictitious key; it did not separately demonstrate the other 12. An AI provider key could incur charges on the account, while the scope of a GitHub token depends on its permissions.

“a prompt is only as strong as what its answer is bound to. If the approval is not tied to the artifact that was inspected, the next update inherits it.”

— Endor Labs

What to do, step by step

  1. Update to Docker Sandboxes 0.55.0 or later. Docker says this version fixes credential injection: it enforces approved destinations for API keys and OAuth separately, and treats bindings without approved destinations as absent. Do not continue using an earlier version to run third-party kits with credentials.

  2. Review saved approvals in the credentials file. The Hacker News lists these locations: ~/.config/sbx/credentials.yaml on macOS and Linux, and %APPDATA%\sbx\credentials.yaml on Windows. The file stores approvals, not the key values, according to the Docker credentials documentation cited by the outlet.

    Look for bindings you granted to third-party kits and remove any that should no longer be authorized. Endor Labs warns that approval could persist even after the sandbox was deleted. Therefore, deleting an environment is not enough to ensure the permission has been revoked.

  3. Check kits before running them, especially if you approved them while using a vulnerable version. Each time you run sbx create, review the kit's credential injection domains and the permissions.network.allow entries. Compare the destination with the one you originally accepted: a previous approval did not guarantee that the destination remained the same.

  4. Pin the kit to a specific revision when its source allows it, rather than following a tag or branch that can change. Endor Labs also recommends using a reviewed copy in a local folder. These measures reduce the chance that a mutable reference will provide a different configuration from the one you inspected.

  5. Limit keys to one sandbox where feasible. Credentials configured with sbx secret set are global by default; Endor Labs recommends using the --sandbox option to limit their scope. That way, a redirected credential will not automatically be the one used by every sandbox on the machine.

  6. Rotate potentially exposed keys if you approved a third-party kit and it changed afterward, or if you cannot rule out such a change. BleepingComputer recommends replacing the affected key as a precaution. Also consider the permissions associated with the token: on GitHub, what a third party could do depends on its authorized scopes.

Mistakes to avoid

Do not assume an old permission is safe just because the first warning showed the correct domain. The flaw was precisely that approval was remembered by service, but the saved domain was not checked again when the key was injected.

Also, do not use the policy log as proof that a credential was not leaked. In Endor Labs' reproduction, the log showed the connection as allowed, but did not say that a key had been injected. An apparently normal entry does not, by itself, rule out exposure.

Finally, do not confuse updating with reviewing credentials. Installing the fixed version closes the vulnerability, but does not prove that a key used earlier was not exposed. Review previous approvals and rotate credentials associated with kits that may have changed.

Sources: BleepingComputer, The Hacker News, Endor Labs, CSO Online