Docker Sandboxes CVE-2026-136998 turns one click into a blank check for an attacker. Endor Labs disclosed the flaw on November 30, 2026: CVSS 3.1 score 8.2, thirteen services sharing the flaw. A kit collects your approval once, then quietly changes where your real API key goes. No new prompt. No warning. No log entry.
What happened
Docker Sandboxes run AI coding agents in isolated microVMs. Your raw keys never enter the sandbox: the agent sends a placeholder header, and a host proxy swaps in the real key for approved destinations only.
Version 0.43.0 added a consent gate: running sbx create against a third-party kit shows each credential it wants and the domains it will reach. Approving writes a binding to ~/.config/sbx/credentials.yaml. The domains list is written and never read.
Endor Labs reported the flaw on September 21, 2026. Docker shipped the fix in v0.55.0 on November 30, 2026. Cybersecurity News confirmed the fix; no theft of real credentials was documented.
| Fact | Detail |
|---|---|
| CVE | CVE-2026-136998 (ENDOR-VUL-2026-21091) |
| Severity | 8.2 High (CVSS 3.1); 6.9 Medium (CVSS 4.0); CWE-863 Incorrect Authorization |
| Introduced / Fixed | v0.43.0 / v0.55.0 (Nov 30, 2026) |
| Services | 13 built-in services share the injection path |
“The consent default really is decline. The prompt itself is fine. The defect is that what the prompt promises is never enforced afterward.”
— Endor Labs, CVE-2026-136998 disclosure
How the attack works
The attack is an ordinary software update: one approval, one changed line, no access to your machine.
The 5-step version swap
Approve kit v1. It sends the key only to api.anthropic.com.
Attacker ships kit v2. Same tag or branch; the only change is the inject domain.
No prompt. Your next sbx create finds the binding row and passes.
Proxy sends the real key. The host proxy swaps in your credential.
Nothing in the logs. The policy log records the connection, not the injection.
It gets worse. The kit’s permissions.network.allow entries apply without a prompt, so version 2 can add the attacker’s host to the sandbox egress allowlist in the same file that redirects the key. The approval is not tied to any kit, so it transfers to every later version.
The proof: kit B, identical to kit A except one line naming canary.localtest.me, ran with no prompt — and the canary received the credential in cleartext.

Who is affected
Anyone on v0.43.0 through v0.54.x who approved a third-party kit is exposed. Versions before v0.43.0 are not affected by this defect. All thirteen built-in services share the injection path: anthropic, copilot, cursor, devin, droid, github, google, groq, mistral, nebius, openai, openrouter, and xai.
| Credential | What the attacker gets |
|---|---|
| Model providers (Anthropic, OpenAI, Google, xAI, Mistral, Groq, OpenRouter, Nebius) | Metered API access billed to your account |
| GitHub | The token’s scopes, which typically include write access to your repositories |
| All 13 services | The same injection path; demonstrated on Anthropic |
Docker fixed a related flaw weeks earlier: CVE-2026-103916, a file-copy escape, was fixed in v0.51.0 on November 3, 2026 — the researcher’s second Docker Sandboxes finding in a month.
What to do now
- Upgrade to Docker Sandboxes v0.55.0 now — the version with the fix.
- Review your bindings. Open
~/.config/sbx/credentials.yamland remove any binding granted to a third-party kit. - Read the kit on every
sbx create. Check its inject domains andpermissions.network.allowentries each time. - Pin kit sources. Fetch a fixed commit, not a tag or branch, or keep a reviewed local copy.
- Scope keys per sandbox with
--sandbox.sbx secret setis global by default. - Rotate if in doubt. If an approved kit later changed, rotate the affected provider keys.
Some paths held: mixin kits cannot add injection domains, and sbx kit add refuses credential-declaring kits.

How to protect your AI spend
A stolen key is a billing event first, a security incident second. Metered API usage lands on your account, and a GitHub token can rewrite your repositories.
- Give each project its own API key, so one leak stays contained.
- Set spending caps and billing alerts at your provider, and check usage weekly.
- Scope keys per sandbox with
--sandbox; never store your main key globally. - Rotate keys when an approved kit ships an update you did not review.
- Review
~/.config/sbx/credentials.yamlmonthly and delete bindings you no longer need.
The cheapest fix is the upgrade.
Watch: Docker on safe agent access
Docker’s CISO, Mark Lechner, explains safe agent access with Docker Sandboxes in this official Docker video — a general explainer recorded before this CVE was disclosed.
FAQ
What is CVE-2026-136998?
A Docker Sandboxes flaw where a third-party kit redirects your real API key to an attacker host after one approval. The binding is keyed by service name only, so a kit update changes the destination with no new prompt.
Which versions are affected?
Versions v0.43.0 through v0.54.x. The flaw arrived in v0.43.0, the release that added the consent gate, and was fixed in v0.55.0 on November 30, 2026.
Can an attacker steal my API key?
Yes. The key that leaves the machine is the real one. The researcher proved it with a dummy key and a canary server.
Does the sandbox break?
No. The microVM boundary never broke, and raw keys never entered the guest. The operator approved a destination; the product remembered only the service name.
How do I fix it?
Upgrade to v0.55.0, review ~/.config/sbx/credentials.yaml and remove third-party bindings, pin kit sources to fixed commits, scope keys per sandbox with --sandbox, and rotate keys if an approved kit later changed.
Was any key stolen?
No theft of real credentials was documented. The researcher used a dummy credential and a canary server on loopback.