Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HL-812 Bump node Docker base image to 20.15.0-bookworm-slim for VULN-1313552 #239

Conversation

jzhusong-atlassian-github-account
Copy link
Collaborator

https://asecurityteam.atlassian.net/browse/VULN-1313552

Vulnerability is due to the Docker base image used (node:20.12.2-bookworm-slim), which uses debian/systemd 252.22-1~deb12u1 (reference)

Screenshot 2024-07-24 at 10 10 32 AM

We need to bump this Docker base image up to node:20.15.0-bookworm-slim, which is the closest version that uses debian/systemd 252.26-1~deb12u2 (reference), which is enough to fix the VULN, as the VULN suggests:

Typically updating "systemd" to version "252.23-1~deb12u1" or the latest safe version is enough to remediate the vulnerability.

Screenshot 2024-07-24 at 12 35 38 PM

@jzhusong-atlassian-github-account jzhusong-atlassian-github-account changed the title HL-812 Bump node Docker base image to 20.15.0-bookworm-slim for VULN-… HL-812 Bump node Docker base image to 20.15.0-bookworm-slim for VULN-1313552 Jul 24, 2024
@jzhusong-atlassian-github-account jzhusong-atlassian-github-account merged commit 1beb523 into main Jul 24, 2024
2 checks passed
@@ -1,4 +1,4 @@
FROM node:20.12.2-bookworm-slim@sha256:72f2f046a5f8468db28730b990b37de63ce93fd1a72a40f531d6aa82afdf0d46 as build
FROM node:20.15.0-bookworm-slim@sha256:b5e567dc37677a1485cec21e2f0c0df517c7afe40c1ebc28248c41520c77b3d0 as build
Copy link
Collaborator

@akostevich-atlassian akostevich-atlassian Jul 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: Jeming, please, search for 20.12.2 in the codebase: there are some other places where we need to bump up the Node.js version for the consistency.

Please, check:

  • package.json
  • .nvmrc

@akostevich-atlassian akostevich-atlassian deleted the issue/HL-812-bump-node-docker-base-image-for-vuln branch August 23, 2024 06:42
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.

2 participants