From 330d492578a94b17f1d90d5cd0d221a0e58aacdb Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Thu, 29 Oct 2026 16:44:59 +0000 Subject: [PATCH] fix(docker): Upgrade Alpine packages in the docs image (#581) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit vuln-watch flags CVE-2026-111497 (critical, brotli decoder out-of-bounds write) in compliance-docs. nginx:alpine (3.24) still ships brotli-libs 1.2.0-r1; Alpine already has 1.2.1-r0. Dockerfile.docs now runs `apk upgrade --no-cache` in the nginx stage (CI already builds it with `--pull`). Tested locally: image builds, brotli-libs 1.2.1-r0, `nginx -t` passes, site present under /docs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Reviewed-on: https://git.breakpilot.com/platform/pruefwerk/pulls/581 --- Cargo.lock | 4 ++-- Dockerfile.docs | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9f5a8b6..02bc2d5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3180,9 +3180,9 @@ dependencies = [ [[package]] name = "libz-sys" -version = "1.1.24" +version = "1.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4735e9cbde5aac84a5ce588f6b23a90b9b0b528f6c5a8db8a4aff300463a0839" +checksum = "ff20308ecabd635a2dc1dd5834a86c462cca20efba1d5d3ddab1f8aea3455cb2" dependencies = [ "cc", "libc", diff --git a/Dockerfile.docs b/Dockerfile.docs index 442705a..9c45b7a 100644 --- a/Dockerfile.docs +++ b/Dockerfile.docs @@ -8,6 +8,8 @@ COPY docs/ . RUN npm run build FROM nginx:alpine +# Patched Alpine packages (the nginx base lags behind, e.g. brotli in Oct 2026). +RUN apk upgrade --no-cache RUN rm /etc/nginx/conf.d/default.conf COPY docs/nginx.conf /etc/nginx/conf.d/default.conf # base is /docs/ (see docs/.vitepress/config.mts) — the site lives under /docs/