bug: move Docker base image to node:22.23.2-bookworm (libxml2 CVE-2025-49794) - #259
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-DEBIAN11-LIBXML2-10350665(CVE-2025-49794, CWE-825 expired pointer dereference in libxml2 XPath/schematron parsing, CVSS 9.1) in the Debian 11 layer pulled in byDockerfile:2 FROM node:18.13.0(libxml2 2.9.10+dfsg-6.7+deb11u3).Why Node 22 rather than a newer 18.x tag (the approach used by sibling base-image PRs #118/#120/#147-#150/#253-#255):
2.9.14+dfsg-1.3~deb12u3on bookworm (+deb11u8on bullseye). Node 18 is EOL and its images stopped being rebuilt in spring 2025 — the lastnode:18.20.8-bookwormimage (docker-library/repo-info, created 2025-03-27) shipslibxml2 2.9.14+dfsg-1.3~deb12u1, which is still vulnerable. Nonode:18.*tag closes this finding.node:22.23.2-bookworm(rebuilt 2026-08-25) shipslibxml2 2.9.14+dfsg-1.3~deb12u6(≥ deb12u3 fix). Same tag as bug: upgrade Docker base image to node:22.23.2-bookworm (CVE-2025-55131) #256, so the two PRs agree if both merge (one-line conflict onFROMwith the 18.x sibling PRs).node:18.20.5-alpine3.19was not used: it is also a frozen EOL image, androutes/index.jsshells out to ImageMagickidentify, which the alpine node images don't ship.NODE_OPTIONS=--openssl-legacy-providerinnpm startremains valid on Node 22 (OpenSSL 3). Could notdocker buildhere — the Docker registry is off this session's network allowlist.Note: the finding is filed against
COG-GTM/educational-platform, but that repo has no Dockerfile; the traceability block namesCOG-GTM/nodejs-goofas the source repo and the quotedFROM node:18.13.0is this file.Written by Devin
Devin-Org: engineering