Disable HTTP/2 on OpenResty/nginx proxies (CVE-2026-123633, CVE-2026-123007) #708
Labels
Clear labels
monitoring
bug
design
dev environment
docs
duplicate
enhancement
feature
good first issue
idea
invalid
kredits-1
kredits-2
kredits-3
on hold
ops
question
security
ui/ux
wontfix
Infrastructure metrics, alerts, notifications, etc.
service
discourse
Kosmos Community Forums
service
accounts
Kosmos Accounts
service
drone-ci
Kosmos Drone CI
service
email
mail.kosmos.org
service
garage
S3-compatible object storage
service
gitea
Kosmos Gitea
service
ipfs
Kosmos IPFS
service
lightning
Lightning address, lndhub, etc.
service
mastodon
kosmos.social
service
nostr
Relays, Blossom server, etc.
service
postgres
Database cluster
service
remotestorage
Portable data storage for the Web
service
wiki
Kosmos Wiki
service
xmpp
Kosmos Chat
Something is not working
Graphic/visual design
Config, builds, CI, deployment, etc.
Documentation
This issue or pull request already exists
Improving existing functionality
New functionality
Dive in, and start contributing
Something to consider
Not a bug
Small contribution
Medium contribution
Large contribution
Currently not actionable
Manual IT ops activities
Looking for an answer
All your base are belong to us
User interface, process design, etc.
This won't be fixed
release
major
release
minor
release
patch
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kosmos/chef#708
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why
On 2026-11-18 F5 published nginx 1.30.7 (stable) and 1.31.9 (mainline), fixing two unauthenticated remote code execution flaws that are reachable over HTTP/2 (see the nginx security advisories):
The same release also fixes CVE-2026-118899 (infinite loop while reading a client request body over TLS 1.3), which affects all of our nginx/OpenResty hosts regardless of HTTP/2.
Exposure as verified on the live hosts (2026-11-18)
fornax(public)draco(public)bitcoin-2(btcpay)btcpay.kosmos.org)wiki-1Not applicable to our setup: CVE-2026-123634 (no
resolverplusmirrorconfiguration), CVE-2026-121810 (no HTTP/3/QUIC listeners) and CVE-2026-113425 (nomail {}proxy block).What this PR does
It is a mitigation, not the fix. Since HTTP/2 is the attack surface, the
http2parameter is removed from all 56listendirectives in the 27 templates undersite-cookbooks/*/templates. That covers every HTTPS vhost on both proxies as well as the btcpay and lndhub sites.The change was converged to
fornax,dracoandbitcoin-2and verified there:nginx -tpasses andnginx -T | grep -c http2returns 0 on all three hosts.openssl s_client -alpn h2,http/1.1now negotiateshttp/1.1forkosmos.organdgitea.kosmos.org.fornax.rsk.kosmos.organswers 502 because its upstream RSKJ mainnet node on127.0.0.1:4444is not running; the error log entries predate this change.Disabling HTTP/2 costs browsers the multiplexing optimization, so it should not stay in place longer than necessary.
The actual fix: patching
HTTP/2 can only be turned back on once every endpoint runs an nginx core at or above 1.30.7 (stable) or 1.31.9 (mainline). Neither package source offers that for our hosts today:
bundle/nginx-1.31.8(verifiable withtar tzf openresty-<version>.tar.gz | grep bundle/nginx-).Step 1: patch the OpenResty proxies (fornax, draco)
apt-cache policy openrestyand the tarball listing above.developmentenvironment first. This is a jump from 1.25.3 to 1.31.x: LuaJIT, OpenSSL and the nginx core all change, andlisten ... http2has been deprecated since nginx 1.25.1, so the syntax will need to move to thehttp2 on;directive.knife zero converge -p2222 -a knife_zero.host name:fornax.kosmos.org), never with a reduced run list.http2 on;to theserverblocks and dropping thehttp2parameter fromlistenpermanently.h2again and run the vhost smoke test.Step 2: patch the plain nginx hosts (bitcoin-2, wiki-1)
Both run Ubuntu 20.04, where nginx.org no longer ships current releases, so they cannot be patched in place:
site-cookbooks/kosmos-nginx/recipes/default.rb, which currently forces1.19.1-1~<codename>, to 1.30.7 or newer, or move the repository to the stable branch.wiki-1never had HTTP/2 enabled, so it was not exposed to the two RCE flaws, but it is exposed to CVE-2026-118899 and the other fixes in this release and should still be upgraded.Step 3: clean up
Once both proxies and the btcpay vhost run fixed cores, revert this commit (or re-add
http2through the modernhttp2 on;directive). Keep the non-applicable configuration parts as they are: noresolverplusmirrorcombination, no HTTP/3 listeners and no mail proxy block.http2 on;re-enabled and verified via ALPN👍