{
  "url": "https://tldrcve.com/docker-sandboxes-kit-swap/",
  "json": "https://tldrcve.com/docker-sandboxes-kit-swap.json",
  "verdict_label": "Next cycle",
  "scare_label": "Keep an eye on it",
  "slug": "docker-sandboxes-kit-swap",
  "name": "Sandboxes kit swap",
  "aliases": [
    "docker sandboxes",
    "sbx",
    "docker",
    "kit",
    "kits",
    "agent kit",
    "ai agent",
    "ai coding agent",
    "api key",
    "oauth token",
    "credential",
    "credentials.yaml",
    "credential redirect",
    "version swap",
    "endor labs",
    "cve-2026-136998"
  ],
  "cves": [
    "CVE-2026-136998"
  ],
  "product": "Docker Sandboxes (sbx)",
  "disclosed": "2026-11-30",
  "updated": "2026-12-03",
  "verdict": "cycle",
  "tile_line": "Needs a kit you approved to turn hostile. No attacks.",
  "tldr": "Docker Sandboxes (sbx) 0.43.0 to 0.54.1 could send a stored API key or token to an attacker's server if a third-party kit you approved once was later changed. Shown in a demo only; no attacks known. Kits shipped with sbx aren't involved. Update to 0.55.0.",
  "summary": "The 8.2 High score is Endor Labs' own CVSS 3.1 score; Docker, which issued the CVE, rates it 5.6 Medium, and Endor's own CVSS 4.0 score is 6.9. sbx saved the domains you approved for each key but never checked them when sending it, so the key went wherever the changed kit pointed. Peyton Kennedy of Endor Labs reported it on 21 Sep 2026 and showed it with a fake Anthropic key sent to a test server on the same machine.",
  "status": {
    "exploit": "demonstrated",
    "attacks": "none",
    "kev": null,
    "no_login": false,
    "needs": "control of a third-party kit you already approved for a stored key, and you creating a sandbox from its changed version",
    "scare": 1.0
  },
  "status_cite": {
    "no_login": [
      1,
      3
    ],
    "exploit": [
      3
    ],
    "attacks": [
      1
    ],
    "kev": [
      8
    ]
  },
  "affected": [
    {
      "label": "sbx 0.43.0 to 0.54.1",
      "text": "Docker's CVE record lists 0.43.0 up to, not including, 0.55.0; the last release before the fix is 0.54.1 (24 Nov 2026). Endor says 0.43.0 added the approval step the bug sits in, so older versions don't have this bug. It affects sbx on macOS, Linux and Windows.",
      "cmd": "sbx version",
      "cite": [
        1,
        9,
        3,
        6
      ]
    },
    {
      "label": "A key or token stored on the host",
      "text": "The proxy on your host adds keys saved with `sbx secret set`, or tokens from a host sign-in, to the sandbox's requests; with proxy management on, the real value stays on the host. Docker's fix covers API keys and OAuth tokens. Endor lists 13 services that share the code, including Anthropic, OpenAI and GitHub, but tested only Anthropic.",
      "cmd": "sbx secret ls",
      "cite": [
        4,
        2,
        3
      ]
    },
    {
      "label": "You approved a third-party kit",
      "text": "Docker's record and fix name only third-party kits, which ask you once to approve a stored credential and the domains that may receive it. Kits shipped with sbx don't ask. Approvals are saved, without the secrets, in `~/.config/sbx/credentials.yaml` (`%APPDATA%\\sbx\\credentials.yaml` on Windows).",
      "cmd": "cat ~/.config/sbx/credentials.yaml",
      "cite": [
        1,
        2,
        4
      ]
    },
    {
      "label": "That kit later turns hostile",
      "text": "Whoever controls the kit republishes it at the same reference with a new destination for the key, and can add that host to the kit's network allow list too. Your next `sbx create` loads it without a new prompt and the proxy sends the real key there. Nothing happens until you create a sandbox from the changed kit. No malicious kit has been reported, and CISA's assessment in the CVE record lists exploitation as none.",
      "cite": [
        3,
        1
      ]
    }
  ],
  "do": [
    {
      "label": "Update sbx to 0.55.0",
      "text": "0.55.0 (30 Nov 2026) sends API keys and OAuth tokens only to the domains you approved, and treats approvals with no domains as missing. Update the way you installed it (Homebrew, winget, the Windows MSI or apt on Ubuntu); Docker's install page gives no update command and doesn't say whether sbx updates itself. If you set kit rules through `DOCKER_SANDBOXES_KIT_*` environment variables, save them first with `sbx settings set <key> <value>`: 0.55 stops reading them.",
      "versions": [
        "docker-sandboxes"
      ],
      "cite": [
        2,
        7
      ]
    },
    {
      "label": "Review third-party approvals",
      "text": "Endor Labs suggests removing approvals granted to third-party kits from `credentials.yaml`, and rotating a provider key if a third-party kit you approved has changed since. Docker's own workaround on older versions: don't run untrusted third-party kits while provider keys are stored.",
      "cite": [
        3,
        1
      ]
    },
    {
      "label": "Pin the kits you use",
      "text": "Docker says a version tag selects a kit release and a digest identifies exact content; Endor suggests a fixed Git commit or a reviewed local copy instead of a tag or branch. Signatures are optional unless you set `kit.trustedSigners` and turn on `kit.requireSignature`, and `kit.allowedSources` allows Docker Hub by default.",
      "cite": [
        5,
        3,
        2
      ]
    }
  ],
  "fixed_in": {
    "docker-sandboxes": {
      "0": "0.55.0"
    }
  },
  "sources": [
    {
      "title": "CVE record: Docker rates it 5.6 Medium, 0.43.0 to before 0.55.0, needs prior approval; CISA: exploitation none",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-136998",
      "date": "1 Dec"
    },
    {
      "title": "Docker: sbx 0.55.0 release notes, the fix, env-var settings change, signatures optional by default",
      "url": "https://github.com/docker/sbx-releases/releases/tag/v0.55.0",
      "date": "30 Nov"
    },
    {
      "title": "Endor Labs: the write-up, attack steps, 8.2 and 6.9 scores, 13 services, timeline, advice",
      "url": "https://www.endorlabs.com/learn/cve-2026-136998-docker-sandboxes",
      "date": "30 Nov"
    },
    {
      "title": "Docker docs: Manage credentials, kit approvals, credentials.yaml, built-in kits need no approval",
      "url": "https://docs.docker.com/ai/sandboxes/configuration/credentials/"
    },
    {
      "title": "Docker docs: Use kits, references, digests, signatures, allowed sources",
      "url": "https://docs.docker.com/ai/sandboxes/customize/use-kits/"
    },
    {
      "title": "Docker docs: sbx version command",
      "url": "https://docs.docker.com/reference/cli/sbx/version/"
    },
    {
      "title": "Docker docs: Install sbx with Homebrew, winget or apt",
      "url": "https://docs.docker.com/ai/sandboxes/install/"
    },
    {
      "title": "CISA KEV catalog: not listed",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"
    },
    {
      "title": "Docker: sbx releases on GitHub, 0.54.1 on 24 Nov and 0.55.0 on 30 Nov 2026",
      "url": "https://github.com/docker/sbx-releases/releases"
    }
  ],
  "changes": [
    {
      "date": "2026-12-03",
      "text": "Published."
    }
  ],
  "safe_versions": [
    {
      "id": "docker-sandboxes",
      "name": "Docker Sandboxes (sbx)",
      "url": "https://tldrcve.com/versions/docker-sandboxes/",
      "json": "https://tldrcve.com/versions/docker-sandboxes.json",
      "checked": "2026-12-03",
      "lines": [
        {
          "line": "0.x",
          "latest": "0.55.0",
          "released": "2026-11-30"
        }
      ],
      "older": "Versions 0.43.0 to 0.54.1 lack the CVE-2026-136998 fix. Check with `sbx version`."
    }
  ]
}
