bug: upgrade Docker base image to node:22.23.2-bookworm (CVE-2025-55131) - #256
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes Snyk Container finding
SNYK-UPSTREAM-NODE-14928492(CVE-2025-55131, CWE-362 race condition, CVSS 9.2) in the Node.js runtime itself, pulled in byDockerfile:2 FROM node:18.13.0.The vulnerable component is
node(not an OS package), and the fix only exists in 20.20.0 / 22.22.0 / 24.13.0 / 25.3.0 — no 18.x release is patched (Node 18 is EOL), so the sibling base-image PRs that move tonode:18.20.8-bookworm(#118/#120/#147/#150) do NOT close this finding. This PR moves tonode:22.23.2-bookworm:docker-library/official-imageslibrary/node.-bookworm(Debian 12) matches the OS layer chosen by the sibling base-image PRs, so this also supersedes their Debian 11 package fixes if merged first (expect a trivial one-line conflict with them on this sameFROMline).node:18.20.5-alpine3.19was NOT used: it stays on Node 18 and would leave this CVE open.NODE_OPTIONS=--openssl-legacy-providerinnpm startstill applies on Node 22 (OpenSSL 3). Sanity check:app.jsboots under Node 20.20.2 locally (only the MongoDB/MySQL connections fail, as expected without databases). Could notdocker buildhere — the Docker registry is off the network allowlist.Written by Devin
Devin-Org: engineering