You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Merge pull request #810 from pdettori/fix/image-drop-old-esbuild
fix(image): drop the test runner and its Go 1.20 esbuild from the image