Skip to content

Commit a6ea68e

Browse files
committed
fix: upgrade nginx base image to fix CVE-2026-42945 (CVSS 9.2 RCE)
Cherry-picked from upstream PR CorentinTh#1796 (zethis): - Switch from nginx:stable-alpine (vulnerable 1.26.x) to nginx:1.31-alpine - Fixes heap buffer overflow in ngx_http_rewrite_module allowing unauthenticated RCE - Affected: nginx 0.6.27 - 1.30.0, fixed in 1.30.1/1.31.0
2 parents d505845 + 9c0e770 commit a6ea68e

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)