The OpenResty network platform based on NGINX and LuaJIT, version 1.31.9.1, has been officially released. The complete release notes are available online.

This release upgrades the Nginx core to 1.31.9 and includes fixes for the 10 vulnerabilities recently disclosed by Nginx. Three of them are rated major by Nginx: memory corruption in HTTP/2 flow control (CVE-2026-123007), an infinite loop while reading the client request body over TLS 1.3 (CVE-2026-118899), and a use-after-free in the mail proxy module (CVE-2026-113425). These three issues affect a wide range of Nginx releases, starting from 1.9.5, 1.13.0, and 0.5.33 respectively through 1.31.8. We recommend upgrading as soon as possible. See the Security Fixes section below for the full list.

On the Lua side, the main updates are in lua-nginx-module v0.10.32rc8: TLS cipher selection during ClientHello, atomic shared dictionary operations, per-pool limits for idle balancer keepalive connections, constant-time resumption of queued cosocket connections, and a fix for a worker crash on invalid local bind addresses.

This release provides the portable source code distribution and pre-built binary packages for Ubuntu, Debian, Fedora, CentOS, RHEL, OpenSUSE, and Amazon Linux. You can download the packages from this link.

Special thanks to all our developers and contributors! Thanks to OpenResty Inc. for sponsoring much of the OpenResty core development work.

Key Changes

Highlights of this release include:

  • Nginx Core: Upgraded from Nginx 1.31.8 to 1.31.9, incorporating 10 upstream security fixes
    • Now rejects HTTP header lines without a colon and chunked request bodies with excessive framing overhead
    • Fixed HTTP/3 QPACK decoding, proxy requests that could hang while discarding the request body, and invalid GeoIP coordinates in MMDB files
    • Fixed upstream notification handling so successful responses no longer consume Lua balancer retries
  • lua-nginx-module (upgraded to v0.10.32rc8)
    • Added FFI support for selecting TLS ciphers and TLS 1.3 cipher suites during ClientHello processing and for accessing the request’s SSL_CTX; invalid cipher settings leave the previous settings intact
    • Added atomic shared dictionary operations for updating expiration and deleting an entry only when its value still matches
    • Added per-pool limits for idle balancer keepalive connections
    • Improved cosocket queue handling: queued connections resume in constant time, and pool slots remain reserved across queued connection attempts
    • Fixed lua_ssl_key_log with BoringSSL and enabled ngx.ssl.export_keying_material() on BoringSSL builds
    • Fixed upstream scheme selection when toggling TLS and a worker crash on invalid local bind addresses
    • Cleaned up pending operations in ordinary Lua coroutines during request cleanup
  • stream-lua-nginx-module (upgraded to v0.0.20rc4)
    • Added the corresponding TLS and shared dictionary FFI operations, including the ability to clear server cipher preference
    • Fixed cosocket queue and pool-slot handling to resume waiting connections as capacity becomes available
    • Detached receiveuntil() patterns after each read and preserved pending delimiter bytes when switching readers
    • Cleaned up pending operations in ordinary Lua coroutines during session cleanup
  • lua-resty-core (upgraded to v0.1.35rc3)
    • Added ngx.ssl.get_req_ssl_ctx()
    • Added the set_ciphers() and set_ciphersuites() methods in ngx.ssl.clienthello, which work in ssl_client_hello_by_lua* with OpenSSL 1.1.1 or later
    • Added ngx.shared.DICT:compare_expire() for atomic compare-and-update and compare-and-delete operations
    • Added the optional pool_size argument to ngx.balancer.enable_keepalive()
  • lua-resty-lock (upgraded to v0.10)
    • Fixed an expired lock owner being able to release or extend a lock acquired by another caller; the check covers explicit release, expiration changes, and garbage collection
  • LuaJIT (upgraded to v2.1-20261117)
    • Fixed FFI array initializer bounds checks, failed bit-operation conversion errors, and sign extension when negative integers are cast to 64-bit pointers
    • Fixed JIT recording for select() beyond the available varargs and constant folding of ldexp() with non-integer exponents; added a nesting limit check for the ternary operator
    • Fixed x86 and x64 JIT conversion and store code generation, and avoided a store-to-load forwarding stall after stack restoration on x64 with GC64
    • Fixed escaping of paths in DynASM line directives and an ARM64 DynASM sanitizer warning
  • lua-resty-openssl (upgraded to v1.10.0)
    • Updated TLS integration for recent OpenResty releases, preferring lua-resty-core SSL accessors
    • Fixed support for SM2 keys
  • lua-resty-openssl-aux-module (new, 0.3.0)
    • Added native helpers for TLS operations; the module is built by default when lua-resty-openssl is enabled
  • encrypted-session-nginx-module (upgraded to v0.11)
    • New session tokens are now encrypted with a fresh random IV and authenticated with HMAC-SHA256
  • Other component upgrades
    • headers-more-nginx-module upgraded to v0.42, with fixes for media type matching (now case-insensitive and ignoring parameters in request content types) and for charset handling when successive directives replace or clear Content-Type
    • drizzle-nginx-module upgraded to v0.1.15, pausing database reads while client output is backed up, retrying failed connections only before SQL is submitted, and no longer logging passwords
    • echo-nginx-module upgraded to v0.66, rejecting overflowing counts and output sizes in echo_duplicate and empty delimiters in echo_foreach_split
    • array-var-nginx-module upgraded to v0.07, validating array references before map or join operations
    • ngx_postgres upgraded to v1.2, with fixed support for complex configuration values on Nginx 1.31.3 and later
    • Windows builds now download zlib from the upstream archive over HTTPS

Security Fixes

This release includes the 10 CVE fixes from Nginx 1.31.9, grouped by the affected area:

  • HTTP/2 and HTTP/3
    • Memory corruption in HTTP/2 flow control (CVE-2026-123007)
    • Use-after-free during HTTP/2 stream creation (CVE-2026-123633)
    • Use-after-free during HTTP/3 stream creation (CVE-2026-121810)
  • Resolver and mail proxy
    • Use-after-free in DNS response processing (CVE-2026-123634)
    • Use-after-free in the mail proxy (CVE-2026-113425)
  • HTTP routing and request bodies
    • Buffer overflow involving try_files and alias (CVE-2026-125283)
    • Worker loop when reading a request body over TLS 1.3 (CVE-2026-118899)
  • Stream TLS
    • Client-certificate verification against the wrong virtual server (CVE-2026-120967)
    • Null pointer dereference with PROXY protocol v2 and dynamic certificates (CVE-2026-120993)
    • Insufficient validation of ClientHello messages in ssl_preread (CVE-2026-123640)

For details on each vulnerability, please see the official Nginx security advisories.

Full Changelog

For the complete list of changes, the HTML changelog, and other related links, please see the complete release notes.

Upgrade Note

encrypted-session-nginx-module v0.11 rejects existing tokens, so users need new sessions after the upgrade. Upgrade all instances that exchange tokens before issuing new sessions. See Token format compatibility for details.

Website

OpenResty is an open-source web platform that integrates an enhanced Nginx core with LuaJIT, maintained by OpenResty Inc. It also bundles numerous third-party Nginx modules and Lua libraries, as well as most of their external dependencies, making it a complete and powerful networking solution. For more information, please visit the OpenResty homepage:

https://openresty.org/

Quality Assurance

We have conducted extensive testing on Amazon EC2 test clusters and ensured that all components, including the Nginx core, work well together. The latest test reports can be found here:

https://qa.openresty.org/

Commercial Version

We run OpenResty based on the latest open-source version in our own global CDN network (known as “Mini CDN”). This network supports our openresty.org and openresty.com websites and is also used for our commercial software. For more information, please visit https://openresty.com/.

Feedback

We welcome feedback on this release. You may create a new GitHub issue or send us an email.