Skip to content

Commit 2586baa

Browse files
committed
fix: upgrade nginx base image to fix CVE-2026-42945 (CVSS 9.2 RCE)
Switch from nginx:stable-alpine (1.26.x, vulnerable) to nginx:1.31-alpine which includes the fix for CVE-2026-42945, a heap buffer overflow in ngx_http_rewrite_module allowing unauthenticated RCE. Affected: nginx 0.6.27 – 1.30.0 Fixed in: nginx 1.30.1, 1.31.0 Ref: https://nginx.org/en/security_advisories.html
1 parent d505845 commit 2586baa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ COPY . .
1010
RUN pnpm build
1111

1212
# production stage
13-
FROM nginx:stable-alpine AS production-stage
13+
FROM nginx:1.31-alpine AS production-stage
1414
COPY --from=build-stage /app/dist /usr/share/nginx/html
1515
COPY nginx.conf /etc/nginx/conf.d/default.conf
1616
EXPOSE 80

0 commit comments

Comments
 (0)