Skip to content

Commit ba5bf9b

Browse files
committed
chore: fix 5 open security alerts and bump Node to v24
Bump all Docker base images from node:16-slim/node:lts-alpine to node:24-slim/node:24-alpine. Node 24 ships a newer bundled npm that resolves the brace-expansion (GHSA-jxxr-4gwj-5jf2) and ip-address (GHSA-v2v4-37r5-5v8g) image-scan alerts; the rebuild also picks up pm2@7 with a patched ws (GHSA-58qx-3vcg-4xpx). Override js-yaml to ^4.2.0 in server and client to close the CVE-2026-53550 DoS alert in both package-lock files. Both projects use .eslintrc.js so the removed safeLoad API is never invoked.
1 parent 5e19b94 commit ba5bf9b

7 files changed

Lines changed: 3481 additions & 1588 deletions

File tree

Dockerfile.prod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build client frontend
2-
FROM node:lts-alpine AS fe-builder
2+
FROM node:24-alpine AS fe-builder
33
LABEL maintainer="support@yivi.app"
44

55
ENV PATH=/app/node_modules/.bin:$PATH
@@ -13,7 +13,7 @@ RUN npm run build
1313
##################################
1414

1515
# Build server backend
16-
FROM node:lts-alpine AS be-builder
16+
FROM node:24-alpine AS be-builder
1717
LABEL maintainer="support@yivi.app"
1818

1919
ENV PATH=/app/node_modules/.bin:$PATH
@@ -39,7 +39,7 @@ COPY ./server/static ./dist/static
3939
##################################
4040

4141
# Build server and include frontend (docroot is set to ../client in config.json)
42-
FROM node:lts-alpine
42+
FROM node:24-alpine
4343

4444
COPY --from=be-builder /app/dist/. /server
4545
COPY --from=fe-builder /app/dist/. /client

client/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16-slim
1+
FROM node:24-slim
22

33
RUN mkdir -p /usr/src/app
44

0 commit comments

Comments
 (0)