From ltning-nginx at anduin.net Tue Nov 17 11:13:08 2026 From: ltning-nginx at anduin.net (ltning-nginx at anduin.net) Date: Tue, 17 Nov 2026 12:13:08 +0100 Subject: Adding headers to all error pages Message-ID: <7383fdbb-add4-4018-a860-47326546afb5@anduin.net> Hi, we're largely relying on the internal error pages in nginx, with a few exceptions where we serve static HTML files. Lately it has been required of us to include the response header X-Content-Type-Options: nosniff in every response - including all possible error pages. As this is floated by a PCI ASV (a network scanning company "certified" by the payment industry, to whom we pay protection money to be allowed to continue doing what we do), I'm having a hard time pointing out how absolutely ludicrous this is: It would require a *lot* of changes to our configurations, introducing risks and pitfalls where there currently are none. Is there a way to relatively easily do this, without constructing new location { } blocks handling all the errors we expect to encounter? I've been arguing that there are good reasons to not add a lot of headers to error responses, and for pages that are strictly plain HTML, this particular header makes absolutely no sense. Sadly, I do not expect to make much headway. Thanks, /Eirik From nick at nickrickard.co.uk Tue Nov 17 13:59:25 2026 From: nick at nickrickard.co.uk (Nick Rickard) Date: Tue, 17 Nov 2026 13:59:25 +0000 Subject: Adding headers to all error pages In-Reply-To: <7383fdbb-add4-4018-a860-47326546afb5@anduin.net> References: <7383fdbb-add4-4018-a860-47326546afb5@anduin.net> Message-ID: <153d524a-8d9d-4184-b83a-d69bdaf494b1@nickrickard.co.uk> > > we're largely relying on the internal error pages in nginx, with a few > exceptions where we serve static HTML files. Lately it has been required > of us to include the response header > ??? X-Content-Type-Options: nosniff > in every response - including all possible error pages. > The ease may depend on your version of nginx. server { ... add_header X-Content-Type-Options "nosniff" always; ... } Should add the header to all responses including 403, 404, etc. If you're on nginx 1.30 or later then add_header_inherit in the location blocks should inherit this setting and still allow extra child rules. (I'm not on 1.30 so not tested.) If you're earlier than 1.30 then add_header directives in child locations will interfere with this so perhaps less straightforward. From teo.en.ming at protonmail.com Sat Nov 21 13:09:49 2026 From: teo.en.ming at protonmail.com (Turritopsis Dohrnii Teo En Ming) Date: Sat, 21 Nov 2026 13:09:49 +0000 Subject: nginx2root: AI Discovers Five Critical nginx Flaws and a Path to Root Message-ID: Subject: nginx2root: AI Discovers Five Critical nginx Flaws and a Path to Root Good day from Singapore, Here is an article which I would like to share. Article: nginx2root: AI Discovers Five Critical nginx Flaws and a Path to Root Link: https://securityaffairs.com/203440/hacking/nginx2rootai-discovers-five-critical-nginx-flaws-and-a-path-to-root.html Date of article: 19 Nov 2026 Thank you. Regards, Mr. Turritopsis Dohrnii Teo En Ming Targeted Individuals Singapore 21 Nov 2026 Saturday 9.08 pm Singapore Time From mdounin at mdounin.ru Sat Nov 21 20:04:58 2026 From: mdounin at mdounin.ru (Maxim Dounin) Date: Sat, 21 Nov 2026 23:04:58 +0300 Subject: nginx2root: AI Discovers Five Critical nginx Flaws and a Path to Root In-Reply-To: References: Message-ID: Hello! On Sat, Nov 21, 2026 at 01:09:49PM +0000, Turritopsis Dohrnii Teo En Ming via nginx wrote: > Subject: nginx2root: AI Discovers Five Critical nginx Flaws and a Path to Root > > Good day from Singapore, > > Here is an article which I would like to share. > > Article: nginx2root: AI Discovers Five Critical nginx Flaws and a Path to Root > Link: https://securityaffairs.com/203440/hacking/nginx2rootai-discovers-five-critical-nginx-flaws-and-a-path-to-root.html > Date of article: 19 Nov 2026 > > Thank you. Just in case, a better write up about these issue can be found here: https://xint.io/blog/nginx2root-remote-code-execution Exploitability of these issues looks slightly exaggerated, yet these certainly need to be fixed. I'm currently working on patches to address the issues in freenginx, will be available shortly. -- Maxim Dounin http://mdounin.ru/ From mdounin at mdounin.ru Tue Nov 24 15:53:08 2026 From: mdounin at mdounin.ru (Maxim Dounin) Date: Tue, 24 Nov 2026 18:53:08 +0300 Subject: freenginx-1.31.6 Message-ID: Changes with freenginx 1.31.6 24 Nov 2026 *) Security: a flow control window overflow might cause memory corruption in a worker process when using HTTP/2, potentially resulting in arbitrary code execution (CVE-2026-123007). *) Security: use-after-free might occur when using HTTP/2, potentially resulting in arbitrary code execution (CVE-2026-123633). *) Security: use-after-free might occur when using HTTP/3, potentially resulting in arbitrary code execution (CVE-2026-121810). *) Security: use-after-free might occur when using the mail proxy module, potentially resulting in arbitrary code execution (CVE-2026-113425). *) Bugfix: a segmentation fault might occur in a worker process if the "resolver" directive was used in subrequests. *) Bugfix: excessive CPU usage might be observed when using the "ssl_early_data" directive. *) Workaround: OpenSSL might be rebuilt unexpectedly when using the --with-openssl option to build OpenSSL 4.1. Thanks to nisbet-hubbard. -- Maxim Dounin http://freenginx.org/ From mdounin at mdounin.ru Tue Nov 24 15:53:37 2026 From: mdounin at mdounin.ru (Maxim Dounin) Date: Tue, 24 Nov 2026 18:53:37 +0300 Subject: freenginx-1.30.3 Message-ID: Changes with freenginx 1.30.3 24 Nov 2026 *) Security: a flow control window overflow might cause memory corruption in a worker process when using HTTP/2, potentially resulting in arbitrary code execution (CVE-2026-123007). *) Security: use-after-free might occur when using HTTP/2, potentially resulting in arbitrary code execution (CVE-2026-123633). *) Security: use-after-free might occur when using HTTP/3, potentially resulting in arbitrary code execution (CVE-2026-121810). *) Security: use-after-free might occur when using the mail proxy module, potentially resulting in arbitrary code execution (CVE-2026-113425). -- Maxim Dounin http://freenginx.org/