Nginx 1.31.9
nginx 1.31.9 was released on November 18, 2026 as the current mainline build. It is a security release above all else: ten CVEs are addressed, two request-parsing behaviors change, and a batch of longstanding bugs is fixed.
Overview
This is the third mainline update since 1.31.6 in September. Unlike the previous two, which carried a single CVE each, 1.31.9 consolidates fixes for memory-safety defects spread across HTTP/1.1, HTTP/2, HTTP/3, the resolver, the mail proxy, and the stream module. The stable branch ships a matching build, nginx 1.30.7.
Security
- CVE-2026-125283: a buffer overflow in a worker process when the try_files and alias directives are combined in certain configurations. Reported by Marc Luchian and Liviu-Alexandru Bud.
- CVE-2026-123007: a flow control window overflow in HTTP/2 that can cause a segmentation fault in a worker process, or possibly other impact.
- CVE-2026-123633: a use-after-free in HTTP/2 when worker_connections is set too low.
- CVE-2026-121810: the same use-after-free pattern in HTTP/3 under the same low worker_connections condition.
- CVE-2026-123634: a use-after-free when the resolver directive is in use and the same name is resolved simultaneously in subrequests. An attacker able to trigger name resolution can crash a worker.
- CVE-2026-113425: a use-after-free in the mail proxy server.
- CVE-2026-120967: in the stream module, an attacker able to complete the SSL handshake synchronously could have client certificates verified against the default server configuration instead of the virtual server selected by SNI.
- CVE-2026-120993: a segmentation fault when PROXY protocol version 2 is used together with dynamic SSL certificate loading.
- CVE-2026-123640: ngx_stream_ssl_preread_module could interpret malformed ClientHello messages differently than other TLS implementations, potentially bypassing security restrictions.
- CVE-2026-118899: worker processes could enter an endless loop while reading a request body over SSL.
Behavior Changes
Two hardening changes are worth noting before you roll this out:
- Header lines without a colon are now rejected. Malformed requests that upstream proxies previously tolerated will now receive an error.
- A request is rejected if a chunked request body contains too much framing overhead. Clients that send many tiny chunks may need tuning.
Bug Fixes
- A buffer overflow in a worker process when a GeoIP database in MMDB format contains invalid coordinates.
- Requests could hang when proxied while the request body was being discarded.
- Some QPACK static table values were decoded incorrectly over HTTP/3.
- Over HTTP/2, response trailers could delay data of higher priority streams.
- The $cookie_ variables and ngx_http_userid_module mishandled a Cookie header line containing a cookie with no name.
- Non-cacheable variables in the index directive could be evaluated incorrectly.
- OCSP responses for client certificates with uncommon serial numbers could be cached incorrectly when ssl_ocsp_cache is used.
- The control API did not respond to requests with an excessively long request line.
Upgrade Path
Mainline users should move to 1.31.9 and stable users to 1.30.7. Because of the request-parsing changes, run a staging pass against any client that sends unusual headers or heavily fragmented chunked uploads. Both tarballs and Windows binaries are on nginx.org, with packages following the usual repository cadence.