Skip to content

moca image ships esbuild 0.21.5 (Go 1.20.12, CVE-2024-24790): RHACS blocks every deploy #809

Closed

Description

@pdettori

Problem

Every ghcr.io/rossoctl/moca image, 0.9.0 and main-1016d26 included, carries an esbuild binary built with Go 1.20.12, which is affected by CVE-2024-24790 (critical, fixed in Go 1.21.11 / 1.22.4).

On the SBX0 cluster (namespace moca-sbx), the RHACS admission policy "Block Critical CVE older than 180 days - All" (policyeval.stackrox.io) therefore refuses any create or update of a Deployment that uses the image:

Fixable CVE-2024-24790 (CVSS 9.8) (severity Critical) found in component 'stdlib' (version 1.20.12)
in container 'sandbox-relay', resolved by version 1.21.11

During an upgrade attempt on 2026-11-13 this refused the relay update, then refused the rollback of the control plane to 0.9.0. Neither the upgrade nor a rollback can be deployed until the image is clean. A brand-new image is admitted once, before RHACS has scanned it, which is how the control plane did roll forward.

Cause

vitest 2.x pulls in vite 5.4.21, which pins esbuild 0.21.5. That release's platform binary is built with go1.20.12; go version on @esbuild/*@0.21.5/bin/esbuild prints go1.20.12. The Dockerfile's runtime stage copies the builder's whole /app (COPY --from=builder /app ./), dev dependencies included, so the test runner and its esbuild ship in the image. The runtime only needs tsx's own esbuild 0.28.2, which is clean. Nothing outside test files imports vite or vitest.

Fix

Drop vite, vite-node, vitest, @vitest/* and esbuild 0.21 from the builder tree before the runtime copy. A build-time check fails if an esbuild older than 0.25 is left. The longer-term option is moving to vitest 3+ (vite 6+, a newer esbuild).

Activity

  1. added a commit that references this issue on Nov 13, 2026
  2. added a commit that references this issue on Nov 13, 2026
    235d04f
  3. added this to the v0.11.0 milestone on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions