Skip to content

Commit 249b2c9

Browse files
authored
Merge pull request #31 from CBIIT/CBIO-429
Fix CVEs
2 parents f6625fb + 85974a9 commit 249b2c9

File tree

5 files changed

+558
-356
lines changed

5 files changed

+558
-356
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Setup Node
2-
FROM node:22-alpine3.22 AS base
2+
FROM node:24-alpine3.22 AS base
3+
# Refresh index and upgrade OpenSSL so all stages get patched version (fixes CVE-2025-15467, CVE-2025-4575).
4+
# apk update is required so the build sees the latest openssl/libssl3; both packages must be upgraded.
5+
RUN apk update && apk upgrade openssl libssl3
36

47
# # Upgrade npm (pin version for reproducibility; use npm@latest if you prefer)
58
# RUN npm install -g npm@latest \
@@ -9,9 +12,7 @@ FROM node:22-alpine3.22 AS base
912
# Install dependencies
1013
FROM base AS deps
1114
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
12-
RUN apk upgrade && apk --no-cache add git
13-
# Update OpenSSL to fix CVE-2025-4575
14-
RUN apk upgrade openssl
15+
RUN apk --no-cache add git
1516
RUN apk add --no-cache libc6-compat
1617
WORKDIR /app
1718
COPY package*.json ./

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
/// <reference path="./.next/types/routes.d.ts" />
3+
import "./.next/dev/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)