Skip to content

fix(deploy): drop npm from the runtime image and take Debian security fixes - #403

Merged
jm-rivera merged 1 commit into
devfrom
fix/image-advisories
Dec 5, 2026
Merged

jm-rivera merged 1 commit into
devfrom
fix/image-advisories

Conversation

@jm-rivera

Copy link
Copy Markdown
Contributor

Clears the HIGH findings the first advisory scan (#402) reported on the deploy image. The runtime stage now removes npm, npx and corepack, which carried a tar with 20 advisories (CVE-2026-140230 to CVE-2026-140252); nothing at runtime runs them, since CMD is node server.js and every job runs a bundled node dist/*.cjs. The builder stage, which is not shipped, still installs pnpm through npm. The runtime stage also upgrades libssl3t64, openssl-provider-legacy and libzstd1 to Debian's fixed 3.5.10-1~deb13u1 and 1.5.7+dfsg-1+deb13u1 (CVE-2026-107494, CVE-2026-124709, CVE-2026-124851), because the current node:26-slim digest does not carry them yet; the comment says to drop the upgrade once it does.

Checked locally: the rebuilt linux/amd64 image scans clean with Trivy 0.77.0 at HIGH and CRITICAL, and the server starts and reports ready on port 8080.

@jm-rivera
jm-rivera merged commit 81f4f56 into dev Dec 5, 2026
11 checks passed
@jm-rivera
jm-rivera deleted the fix/image-advisories branch December 5, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant