Back to Newsroom

Threat intel4 min read

Docker Sandboxes flaw let agent kit updates steal API keys

CVE-2026-136998 let a third-party agent kit, approved once, send a developer's stored Anthropic, OpenAI or GitHub keys to another host after an update. Docker Sandboxes 0.55.0 fixes it.

4Tify Team

Docker Sandboxes flaw let agent kit updates steal API keys

Docker has fixed a flaw in Docker Sandboxes that let a third-party agent kit send a developer's stored API keys to a server of the attacker's choosing. The bug, CVE-2026-136998, affects versions 0.43.0 up to 0.55.0 on macOS, Windows and Linux. Version 0.55.0, released on 30 November, closes it.

What happened

Docker Sandboxes (the sbx tool) runs AI coding agents inside isolated virtual machines. Provider keys stay on the host: the agent sends requests with a placeholder, and a proxy on the host puts the real key in the header on the way out.

Which domains may receive a key is declared by the kit, a packaged agent configuration that can be fetched from a registry, a Git reference or a local folder. Since 0.43.0, sbx asks the developer to approve a third-party kit's credential request and records the service and the approved domains in a binding.

The recorded domains were never checked. When a request came in, the proxy only looked for a binding with the right service name, then injected the key for whatever destination the current version of the kit declared. A kit approved for api.anthropic.com could be replaced at the same tag, branch or folder by a version pointing at another host. The next sbx create showed no prompt and the proxy handed the real key over. A kit could also add hosts to the sandbox's network allowlist without asking.

The developer had no sign of it afterwards. The sbx policy log recorded an allowed connection and nothing about a key being injected into it.

Who is affected

Anyone running Docker Sandboxes 0.43.0 to 0.54.x who approved credentials for a third-party kit. Built-in kits that ship with sbx don't go through this approval and aren't the attack path.

Thirteen built-in provider integrations share the same injection route, among them Anthropic, OpenAI, GitHub, Google, Mistral and xAI, so the exposed secret can be any of those keys or tokens. Secrets are global by default, so a redirected key is the one every sandbox on that machine uses. A leaked GitHub token gives whatever its scopes allow, often write access to the developer's repositories. A leaked AI provider key can run up charges on the victim's account.

Docker scores the flaw 5.6 (Medium) under CVSS 4.0. The attacker needs no access to the victim's machine, only a kit the developer approved once and a changed destination in a later version. No attacks using it have been reported, and the flaw is not in CISA's Known Exploited Vulnerabilities catalog. The research covered the local product; whether cloud sandboxes, which keep a separate secret store, ever shared the same logic is not confirmed.

What changed in 0.55.0

According to the v0.55.0 release notes, credential injection now enforces the destinations approved for API keys and for OAuth tokens separately, and a binding with no approved destinations is treated as missing. The same release also requires HTTPS endpoints for host credentials.

What to do now

  1. Update Docker Sandboxes to 0.55.0 or later on every developer machine and build host that uses it.
  2. Open the approvals file, ~/.config/sbx/credentials.yaml on macOS and Linux or %APPDATA%\sbx\credentials.yaml on Windows, and remove bindings granted to third-party kits you no longer trust. It holds approvals, not key values, as Docker's credential documentation explains.
  3. If a third-party kit you approved changed while you were on an affected version, rotate the provider keys and tokens it could reach.
  4. Pin third-party kits to a fixed commit, or keep a reviewed copy in a local folder, and read the inject domains and permissions.network.allow entries whenever a kit changes.
  5. Store keys per sandbox with sbx secret set <service> --sandbox <name> instead of globally, so one bad kit can't reach every sandbox's key.

The full record is on NVD.

Agent kits, plugins and other third-party configuration sit outside most dependency checks, yet they decide where secrets go. Our AI-assisted code review looks at that layer too: it reads the agent and tool configuration a repository pulls in, checks where it sends credentials and flags hard-coded or over-scoped tokens.

NEWSLETTER

The week’s news,
every Friday.

A short email with what we published that week. You can unsubscribe from any of them.

FRIDAY DIGEST · SAMPLE4TIFY NEWSROOM

This week in security

  • 01Public exploit out for vBulletin flaw that needs no login
  • 02EAGERBEE, ShadowRelay and PhantomNet backdoors hit Russia and Belarus
  • 03European Commission IT outage leaves staff without VPN and email

+ 6 MORE IN THIS ISSUE · UNSUBSCRIBE IN ONE CLICK

ONE OFFER

More than one product?
Get one offer.

Tell us what you need to protect and your budget, monthly or yearly. We combine the products into one offer and one contract, sized to that budget, and we stay with you after it is signed.

Ask for an offer Just tell us how many assets you have and what you want to spend.