From baf93965c90cb1f253ce9ab9bdbc5254fe915202 Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Tue, 17 Nov 2026 19:55:01 +0530 Subject: [PATCH 1/2] fix(nginx-proxy): update nginx to 1.31.8 for the 1.31.7 security fixes jwilder/nginx-proxy 1.11.6 is still the latest nginx-proxy release and ships nginx 1.31.3. nginx 1.31.6 and 1.31.7 fixed six CVEs since then, among them CVE-2026-93479, a buffer overflow while evaluating string expressions with variables, which covers the variable-based vhost log_format every proxied site uses. The build-time apt-get upgrade can't pick up nginx because the official nginx image removes its nginx.org apt source. Re-add the nginx.org mainline source after the Debian upgrade, install the same pinned package set as the official nginx:1.31.8 image (nginx and its xslt, geoip, image-filter, njs and acme modules), and remove the source again. Drop this once an nginx-proxy release ships nginx 1.31.8 or newer; a newer base makes the pinned install fail instead of downgrading. --- nginx-proxy/Dockerfile | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/nginx-proxy/Dockerfile b/nginx-proxy/Dockerfile index f594631..720c1cf 100644 --- a/nginx-proxy/Dockerfile +++ b/nginx-proxy/Dockerfile @@ -8,10 +8,25 @@ COPY nginx.conf /etc/nginx/nginx.conf COPY version.conf /version.conf COPY default.html /etc/nginx/html/default.html +# nginx-proxy 1.11.6 ships nginx 1.31.3; take the nginx.org packages with the 1.31.7 security fixes +# (same set as the official nginx image) until an upstream release does. Drop this block then. +ENV NGINX_VERSION=1.31.8 \ + NJS_VERSION=1.0.2 + # The upstream image isn't rebuilt between nginx-proxy releases, so apply pending Debian updates here. RUN apt-get update \ && apt-get upgrade -y \ - && apt-get install --no-install-recommends apache2-utils -y && rm -rf /var/lib/apt/lists/* + && apt-get install --no-install-recommends apache2-utils -y \ + && echo "deb [signed-by=/etc/apt/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/mainline/debian/ trixie nginx" > /etc/apt/sources.list.d/nginx.list \ + && apt-get update \ + && apt-get install --no-install-recommends -y \ + nginx=${NGINX_VERSION}-${PKG_RELEASE} \ + nginx-module-xslt=${NGINX_VERSION}-${DYNPKG_RELEASE} \ + nginx-module-geoip=${NGINX_VERSION}-${DYNPKG_RELEASE} \ + nginx-module-image-filter=${NGINX_VERSION}-${DYNPKG_RELEASE} \ + nginx-module-njs=${NGINX_VERSION}+${NJS_VERSION}-${NJS_RELEASE} \ + nginx-module-acme=${NGINX_VERSION}+${ACME_VERSION}-${PKG_RELEASE} \ + && rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/nginx.list RUN chmod +x /app/docker-entrypoint.sh RUN rm -rf /var/log/nginx/access.log /var/log/nginx/error.log && touch /var/log/nginx/access.log /var/log/nginx/error.log From c286d0aae16075c0156f6a9594eae005851230cf Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Thu, 19 Nov 2026 10:21:41 +0530 Subject: [PATCH 2/2] fix(nginx-proxy): update nginx to 1.31.9 for the 2026-11-18 security fixes nginx 1.31.8 is still vulnerable to the 2026-11-18 advisories. The ones the proxy is exposed to are the HTTP/2 use-after-free (CVE-2026-123633) and flow-control memory corruption (CVE-2026-123007), since `nginx.tmpl` enables `http2` on every 443 server, the infinite loop reading a client request body over TLS 1.3 (CVE-2026-118899), and the resolver use-after-free (CVE-2026-123634). 1.31.9 fixes them. `ACME_VERSION` moves to 0.4.2 because nginx.org has no 1.31.9 build of nginx-module-acme with 0.4.1, only `1.31.9+0.4.2`. This matches the official nginx 1.31.9 image. Refs EasyEngine/easyengine#1966 --- nginx-proxy/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nginx-proxy/Dockerfile b/nginx-proxy/Dockerfile index 720c1cf..eaf8c1c 100644 --- a/nginx-proxy/Dockerfile +++ b/nginx-proxy/Dockerfile @@ -8,10 +8,11 @@ COPY nginx.conf /etc/nginx/nginx.conf COPY version.conf /version.conf COPY default.html /etc/nginx/html/default.html -# nginx-proxy 1.11.6 ships nginx 1.31.3; take the nginx.org packages with the 1.31.7 security fixes -# (same set as the official nginx image) until an upstream release does. Drop this block then. -ENV NGINX_VERSION=1.31.8 \ - NJS_VERSION=1.0.2 +# nginx-proxy 1.11.6 ships nginx 1.31.3; take the nginx.org 1.31.9 packages with the 1.31.7 and 2026-11-18 +# security fixes (same set as the official nginx image) until an upstream release does. Drop this block then. +ENV NGINX_VERSION=1.31.9 \ + NJS_VERSION=1.0.2 \ + ACME_VERSION=0.4.2 # The upstream image isn't rebuilt between nginx-proxy releases, so apply pending Debian updates here. RUN apt-get update \