bug: fix SNYK-DEBIAN11-LIBXML2-10350669 (CVE-2025-49796) by moving the Docker base image to node:22.23.2-bookworm - #261
Open
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
…e Docker base image to node:22.23.2-bookworm
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
SNYK-DEBIAN11-LIBXML2-10350669(CVE-2025-49796, CWE-125, CVSS 9.1):FROM node:18.13.0is a Debian 11 image frozen withlibxml2 2.9.10+dfsg-6.7+deb11u3.Why Node 22 rather than the
node:18.20.8-bookwormtag used by the sibling base-image PRs (#118/#120/#147-#150/#253/#254): Node 18 is EOL and its images were dropped from the official library in May 2025, so18.20.8-bookwormis frozen withlibxml2 2.9.14+dfsg-1.3~deb12u1(docker-library/repo-info @5414478), which predates this CVE (published June 2025) and is still vulnerable.node:22-bookwormis an active LTS line that gets rebuilt on Debian security updates; the current image (repo-info, built 2026-08-25) shipslibxml2 2.9.14+dfsg-1.3~deb12u6, which contains the fix. Debian 11 itself reached end of LTS on 2026-08-31, so anapt-get upgradelayer on the old image is not a durable option either.Snyk's
node:18.20.5-alpine3.19suggestion was declined: it is also EOL, and Alpine dropsbuildpack-depsincluding the ImageMagickidentifybinary thatroutes/index.jsshells out to.Runtime impact:
NODE_OPTIONS=--openssl-legacy-provider(used bynpm start) is still valid on Node 22;npm installof the pinned dependency set already runs on Node 20 in this repo's dev environment, and no native build deps are involved.Not build-verified locally: the Docker registry and deb.debian.org are off this session's network allowlist, so no
docker build/snyk container testwas run. Conflicts on the sameFROMline with the open sibling PRs above; whichever merges first, the others rebase to a trivial one-liner.This PR was written by Devin for the automation service.
Devin-Org: engineering