nginx 1.31.9 Mainline with HTTP/3 support has been added to the CodeIT repository. http2 and ngx_cache_purge are built in, and OpenSSL is linked dynamically against the official OpenSSL 4.0.3 with QUIC support. The Brotli compression module from Google and ngx_http_geoip2 ship as dynamic modules, in nginx-module-brotli and nginx-module-geoip2, both optional like the rest of the nginx-module-* set. The packages are built for RHEL, CentOS, AlmaLinux, Rocky Linux and Oracle Linux 7, 8, 9 and 10, and for Ubuntu 22.04 and 24.04.
This update fixes security vulnerabilities. Upgrading is recommended.
More dynamic modules are packaged alongside and are optional: nginx-module-lua with lua-resty-core and lua-resty-lrucache, nginx-module-acme for automatic ACMEv2 certificates, nginx-module-njs, nginx-module-perl, nginx-module-xslt and nginx-module-image-filter. Each one ships its own load_module line in /etc/nginx/modules-enabled, so it works the moment it is installed and nothing has to be added to nginx.conf by hand. Lua and ACME are built for EL9, EL10 and Ubuntu; EL7 gets nginx-module-geoip instead, and njs, Perl, XSLT and image-filter are RPM only.
The same release is on Docker Hub as codeitus/nginx, built on AlmaLinux 9 from these packages and published for amd64 and arm64:
- the newest image, from whichever pool was released last: docker pull codeitus/nginx
- the newest Mainline image: docker pull codeitus/nginx:mainline
- this exact release: docker pull codeitus/nginx:1.31.9
HTTP/3 needs the UDP port published as well as the TCP ones: docker run -d -p 80:80 -p 443:443 -p 443:443/udp codeitus/nginx
Major changes:
- Change: now header lines without a colon are rejected.
- Change: now a request is rejected if the chunked request body contains too much framing overhead.
- Bugfix: a buffer overflow might occur in a worker process when using a GeoIP database in the MMDB format containing invalid coordinates.
- Bugfix: a request might hang if it was proxied while the request body was being discarded.
- Bugfix: some values of the QPACK static table were decoded incorrectly when using HTTP/3.
- Bugfix: when using HTTP/2, response trailers might delay data of higher priority streams.
- Bugfix: the $cookie_… variables and the ngx_http_userid_module handled the “Cookie” request header line incorrectly if it contained a cookie without a name.
- Bugfix: non-cacheable variables in the “index” directive might be evaluated incorrectly.
- Bugfix: OCSP responses for client certificates with uncommon serial numbers might be cached incorrectly when using the “ssl_ocsp_cache” directive.
- Bugfix: the control API did not respond to requests with a too long request line.
Fixed vulnerabilities:
- Security: a buffer overflow might occur in a worker process when using the “try_files” and “alias” directives in certain configurations (CVE-2026-125283).
- Security: a flow control window overflow in HTTP/2 might allow an attacker to cause a segmentation fault in a worker process, or might have potential other impact (CVE-2026-123007).
- Security: use-after-free might occur in a worker process when using HTTP/2 if worker_connections were not enough (CVE-2026-123633).
- Security: use-after-free might occur in a worker process when using HTTP/3 if worker_connections were not enough (CVE-2026-121810).
- Security: use-after-free condition might occur if the “resolver” directive was used and the same name was simultaneously resolved in subrequests, allowing an attacker who is able to trigger name resolution to cause segmentation fault in a worker process, or might have potential other impact (CVE-2026-123634).
- Security: use-after-free might occur in a worker process in the mail proxy server (CVE-2026-113425).
- Security: in the stream module, an attacker who is able to complete the SSL handshake synchronously might cause client SSL certificates to be verified using the configuration of the default server rather than the virtual server selected by SNI (CVE-2026-120967).
- Security: a segmentation fault might occur in a worker process when using PROXY protocol version 2 with dynamic SSL certificate loading (CVE-2026-120993).
- Security: the ngx_stream_ssl_preread_module might interpret malformed ClientHello messages differently than other TLS implementations, which might result in bypassing security restrictions (CVE-2026-123640).
- Security: worker processes might get caught in an endless loop while reading the request body over SSL (CVE-2026-118899).
