#11309·windmill

Embedded Go toolchain in the official Docker image is not updated between app releases (14+ HIGH CVEs, including a symlink traversal)

Author: antoniodenaroCreated Sep 22, 2026Updated Sep 22, 2026

Summary The official ghcr.io/windmill-labs/windmill image ships a Go toolchain under /usr/local/go (used at runtime for the native Go script sandbox via nsjail). This toolchain does not appear to be bumped when the application image itself is bumped, so known HIGH severity Go stdlib CVEs persist across multiple app releases. Evidence Scanned ghcr.io/windmill-labs/windmill pinned by digest at version 1.742.0 with Trivy: 14 HIGH CVEs in Go stdlib binaries under /usr/local/go, mostly DoS-class issues in net/url, crypto/x509, crypto/tls, net/mail, mime, and HTTP/2, plus a symlink-traversal issue in os.Root (CVE-2026-39822). None of these have a fix in the Go version bundled (1.26.0) — the fixed versions are 1.25.8–1.25.12 and 1.26.1–1.26.5. Bumped the image to the latest tag available at the time, 1.793.0 (released ~2 months later, with 2–3 app releases/week in between): the embedded Go version was unchanged (still 1.26.0), and the same 14 CVEs were still present. A later re-scan (Trivy DB refresh, same image, no changes on our side) surfaced a second, non-overlapping batch of ~14 more Go stdlib HIGH CVEs against the same unchanged toolchain — expected behavior on Trivy's side (its vulnerability DB keeps growing), but it confirms the toolchain itself hasn't moved. Full Trivy JSON reports available if useful; happy to attach a sanitized version. Why this matters Windmill supports Go as a native script language, compiled and run inside the nsjail sandbox using this embedded toolchain — so this isn't a build-stage leftover that can be safely ignored, it's part of the runtime attack surface for any Go-language script. Ask Is the Go toolchain version inside the base image tracked/bumped independently from the application version, or tied to a base image that isn't refreshed on the same cadence? Is there a recommended way (docs, Dockerfile args, etc.) to get a build with an up-to-date Go toolchain without waiting on the next base image refresh? Happy to provide more detail, exact CVE IDs, or the Dockerfile diff we used to reproduce this if that helps. Environment Image: ghcr.io/windmill-labs/windmill, tested at 1.742.0 and 1.793.0 (both pinned by digest) Scanner: Trivy