From 6eab96ac2de2c688c80a80b059d9ade689edf7a7 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 20 Nov 2026 20:41:47 +0100 Subject: [PATCH] Nginx Proxy Manager: fetch the nginx HTTP/2 patches from the GitHub API (#18855) --- ct/nginxproxymanager.sh | 5 ++++- install/nginxproxymanager-install.sh | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ct/nginxproxymanager.sh b/ct/nginxproxymanager.sh index bdf5c9fbc..d00d794c3 100644 --- a/ct/nginxproxymanager.sh +++ b/ct/nginxproxymanager.sh @@ -68,7 +68,10 @@ function update_script() { msg_info "Patching nginx HTTP/2 (CVE-2026-123007, CVE-2026-123633)" for commit in 61031503dc8087c2c17cd2142c9b4b19062f90c4 2df48a501d0fb8212b7d39dffeeff5876332ba59 e27f5fa84fe6e98505e70bc543b748747dad0a3b; do - curl_with_retry "https://github.com/nginx/nginx/commit/${commit}.patch" "-" | patch -d /opt/openresty/bundle/nginx-1.31.8 -p1 --forward -s + curl_with_retry "https://api.github.com/repos/nginx/nginx/commits/${commit}" "/tmp/nginx-${commit}.patch" "-HAccept:application/vnd.github.patch" || + curl_with_retry "https://github.com/nginx/nginx/commit/${commit}.patch" "/tmp/nginx-${commit}.patch" + patch -d /opt/openresty/bundle/nginx-1.31.8 -p1 --forward -s <"/tmp/nginx-${commit}.patch" + rm -f "/tmp/nginx-${commit}.patch" done msg_ok "Patched nginx HTTP/2" diff --git a/install/nginxproxymanager-install.sh b/install/nginxproxymanager-install.sh index 102230443..dbab1bd53 100644 --- a/install/nginxproxymanager-install.sh +++ b/install/nginxproxymanager-install.sh @@ -42,7 +42,10 @@ fetch_and_deploy_from_url "https://openresty.org/download/openresty-${OPENRESTY_ msg_info "Patching nginx HTTP/2 (CVE-2026-123007, CVE-2026-123633)" for commit in 61031503dc8087c2c17cd2142c9b4b19062f90c4 2df48a501d0fb8212b7d39dffeeff5876332ba59 e27f5fa84fe6e98505e70bc543b748747dad0a3b; do - curl_with_retry "https://github.com/nginx/nginx/commit/${commit}.patch" "-" | patch -d /opt/openresty/bundle/nginx-1.31.8 -p1 --forward -s + curl_with_retry "https://api.github.com/repos/nginx/nginx/commits/${commit}" "/tmp/nginx-${commit}.patch" "-HAccept:application/vnd.github.patch" || + curl_with_retry "https://github.com/nginx/nginx/commit/${commit}.patch" "/tmp/nginx-${commit}.patch" + patch -d /opt/openresty/bundle/nginx-1.31.8 -p1 --forward -s <"/tmp/nginx-${commit}.patch" + rm -f "/tmp/nginx-${commit}.patch" done msg_ok "Patched nginx HTTP/2"