Skip to content

Upgrade Alpine packages in the runtime image for OpenSSL fixes - #1808

Closed
helpcodeai wants to merge 1 commit into
mainfrom
fix/image-openssl-effect
Closed

helpcodeai wants to merge 1 commit into
mainfrom
fix/image-openssl-effect

Conversation

@helpcodeai

Copy link
Copy Markdown
Contributor

Summary

Trivy reports 10 medium alerts on main for OpenSSL (libssl3 / libcrypto3 3.5.9-r0) in the runtime image. Alpine already ships 3.5.9-r1, but the node:26-alpine base image has not picked it up yet, so every new build still carries r0. The runtime stage now runs apk upgrade --no-cache before it adds wget.

Changes

  • Dockerfile, runner stage: apk upgrade --no-cache && apk add --no-cache wget.

Type

  • Bug fix (security update of image packages)

Testing

  • Tested manually: docker run --rm node:26-alpine sh -c 'apk upgrade --no-cache && apk info -v | grep -E "^lib(ssl|crypto)3"' shows libcrypto3-3.5.9-r1 and libssl3-3.5.9-r1 (r0 before the upgrade).
  • No unit tests: image-only change. CI's Docker build and Trivy image scan cover it.

Not in this PR: the two high alerts for effect 3.20.0 (pulled in by @prisma/config, used only by the Prisma CLI at migration time). An npm override did not resolve cleanly with npm 11 (--package-lock-only drops the package), so that needs its own change or a Prisma patch release.

Both deployment modes: same image for Cloud and self-hosted, no behaviour change.

Checklist

  • My code follows the existing code style
  • I have tested my changes locally
  • This PR has a descriptive title

Related Issues

Code scanning alerts #757 to #766.

@helpcodeai

Copy link
Copy Markdown
Contributor Author

Folded into the v0.55.7 release PR #1809.

@helpcodeai helpcodeai closed this Nov 20, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant