Skip to content

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
mainfrom
devin/1788294746-libxml2-cve-2025-49796
Open

devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1788294746-libxml2-cve-2025-49796

Conversation

@devin-ai-integration

Copy link
Copy Markdown

Summary

Fixes Snyk Container SNYK-DEBIAN11-LIBXML2-10350669 (CVE-2025-49796, CWE-125, CVSS 9.1): FROM node:18.13.0 is a Debian 11 image frozen with libxml2 2.9.10+dfsg-6.7+deb11u3.

-FROM node:18.13.0
+FROM node:22.23.2-bookworm

Why Node 22 rather than the node:18.20.8-bookworm tag 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, so 18.20.8-bookworm is frozen with libxml2 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-bookworm is an active LTS line that gets rebuilt on Debian security updates; the current image (repo-info, built 2026-08-25) ships libxml2 2.9.14+dfsg-1.3~deb12u6, which contains the fix. Debian 11 itself reached end of LTS on 2026-08-31, so an apt-get upgrade layer on the old image is not a durable option either.

Snyk's node:18.20.5-alpine3.19 suggestion was declined: it is also EOL, and Alpine drops buildpack-deps including the ImageMagick identify binary that routes/index.js shells out to.

Runtime impact: NODE_OPTIONS=--openssl-legacy-provider (used by npm start) is still valid on Node 22; npm install of 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 test was run. Conflicts on the same FROM line 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

…e Docker base image to node:22.23.2-bookworm
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.

0 participants