Quick answer

What this guide helps you do

Audit Nginx security notices, identify the installed Ubuntu package, back up and patch safely, then verify HTTPS, certificates and upstream services.

Quick answer

If an Ubuntu home server uses Nginx to publish Jellyfin or other web applications through HTTPS, check the Nginx package source and apply current security updates before changing the proxy configuration.

Ubuntu’s USN-8955-1, published 26 October 2026, fixed five Nginx vulnerabilities in the supported Ubuntu 22.04 LTS, 24.04 LTS, 26.04 LTS and 26.10 releases. Their impact depends on enabled modules and configuration. Some concern specific combinations of directives rather than every reverse proxy.

Follow this order:

identify native Nginx or a container
→ read the applicable Ubuntu or upstream advisory
→ inspect installed package versions and active features
→ back up Nginx configuration and certificate material
→ test the current configuration
→ preview and apply a supported security update
→ validate and reload if required
→ test HTTPS, upstream access, logs and renewals

Do not assume a low upstream Nginx version number is unpatched. Ubuntu backports security fixes to distribution packages, so the full Debian/Ubuntu package version and the official security notice matter more than comparing the Nginx banner to an upstream version.

This guide focuses on native Ubuntu Nginx first. Nginx Proxy Manager in Docker has a separate update path, covered below.

1. Identify what is actually serving requests

Start on the Ubuntu host:

cat /etc/os-release
command -v nginx
nginx -v
sudo nginx -V
systemctl status nginx --no-pager

The version command reports Nginx’s upstream-style version, while the build output shows configured modules and build flags. A service-not-found result can be normal if you use a container instead of native Nginx.

Check Ubuntu package ownership and the current candidate:

dpkg -l 'nginx*'
apt-cache policy nginx nginx-core nginx-full nginx-extras nginx-light

Then check for containerised proxies:

docker compose ls
docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Ports}}'

You may have native Nginx, Nginx Proxy Manager, another reverse proxy such as Caddy or Traefik, or several layers. Do not install or replace Nginx just because a guide assumes it should be present.

Record the actual package source: Ubuntu’s Apt repositories, nginx.org’s repository, a third-party PPA or a container image. Follow that source’s supported patching process rather than mixing package families.

2. Understand the October 2026 advisories

Ubuntu’s security notice USN-8955-1 identifies the following issues and affected configurations:

CVEPotential problemConfiguration or exposure to inspect
CVE-2026-15176Buffer overflow and possible crash or code executionUse of alias with rewrite directives
CVE-2026-93479Buffer overflow and possible crash or code executionmap directives using regular expressions
CVE-2026-95101Injection into proxied requestsHTTP/3 with proxy_request_buffering enabled; Ubuntu 26.04/26.10
CVE-2026-97205Asynchronous file-I/O use-after-free, possible crash or code executionCertain AIO and Server Side Includes combinations
CVE-2026-97629TLS session forgery, potentially bypassing client-certificate verificationShared SSL session cache with affected TLS ticket-key rotation; Ubuntu 24.04/26.04/26.10

These are potential impacts from the advisory, not evidence that your particular server is compromised. A simple HTTPS proxy that does not use HTTP/3, SSI or client-certificate authentication has a different exposure profile from one that does.

The upstream Nginx advisory page identifies patched upstream branches, including 1.30.6+ and 1.31.7+ for the five listed issues. Ubuntu’s patched package versions can still show 1.18, 1.24, 1.28 or 1.30 because security changes were backported.

For Ubuntu releases older than 22.04, see the separate USN-8955-2 notice and the support status of that release. Never apply the table below to an unsupported or differently packaged system without checking its own vendor.

3. Check the corrected Ubuntu package versions

As stated in USN-8955-1, the corrected Nginx package version for each release is:

Ubuntu releaseFixed Ubuntu Nginx package version
26.101.30.4-7ubuntu1.1
26.04 LTS1.28.3-2ubuntu1.12
24.04 LTS1.24.0-2ubuntu7.19
22.04 LTS1.18.0-6ubuntu14.22

These are package versions, not versions you should manually install across distributions. Check the appropriate installed variant (for example nginx-core, nginx-full or nginx-extras) and package source.

dpkg -l 'nginx*'
apt-cache policy nginx nginx-core nginx-full nginx-extras nginx-light
sudo apt update
apt list --upgradable 2>/dev/null | grep nginx

If the installed package is older than its release’s corrected Ubuntu version, or the advisory applies to another vendor’s installed build, plan a maintenance window. Use the full package version and the appropriate notice rather than deciding solely from the output of nginx -v.

4. Review the directives that affect exposure

Before editing anything, inspect the active configuration and any extra include directories. Useful terms from the advisory include:

sudo grep -RInE 'alias|rewrite|map |http3|quic|proxy_request_buffering|aio|ssi|ssl_session_cache|ssl_session_tickets|ssl_verify_client' /etc/nginx

This is a discovery command, not a definitive vulnerability scanner. Matching a directive does not establish that a vulnerable combination is reachable; an absence of matches may miss dynamically generated or included configuration outside that tree.

You can also inspect the full merged configuration with:

sudo nginx -T

Treat that output as sensitive. It can disclose hostnames, internal addresses, authentication settings and certificate paths. Do not paste it publicly without reviewing and redacting it.

Particular things to look for:

  • an alias/rewrite combination that was added years ago for a static-file shortcut
  • map expressions with regular-expression captures
  • experimental QUIC/HTTP/3 listeners
  • Server Side Includes combined with asynchronous I/O
  • mutual-TLS client authentication and session-ticket settings

Patching is the first response. Avoid hurried rewrites of working directives that do not actually match the advisory.

5. Back up the configuration and certificate recovery path

Document the live proxy’s server names, upstream destinations, enabled sites, certificate source and renewal method.

Capture the current Nginx configuration to a root-readable archive:

sudo tar -C /etc -czf /root/nginx-config-before-update-$(date +%F).tar.gz nginx
sudo ls -lh /root/nginx-config-before-update-*.tar.gz

Keep a separate protected copy using your existing backup approach. An archive of /etc/nginx does not necessarily include certificates, private keys or renewal state stored in /etc/letsencrypt or another path. Back those up securely, following the certificate manager’s guidance, and never attach private keys to public support tickets.

If the proxy fronts a database-backed application or is itself deployed using Docker, also back up the persistent application data and the current Compose definitions. See How to Back Up and Restore Docker Compose Services and 3-2-1 Backups for Home Servers.

Record the current service state:

sudo nginx -t
systemctl status nginx --no-pager
sudo journalctl -u nginx -n 40 --no-pager

Fix pre-existing configuration errors before attempting a broad change. A successful syntax test is necessary but does not prove the upstream application is reachable.

6. Preview and apply a safe package update

For Ubuntu-repository Nginx, inspect the transaction:

sudo apt update
sudo apt-get -s upgrade
apt list --upgradable 2>/dev/null | grep nginx

Review the package list, any removals or held packages, and the security notice for your Ubuntu release. Confirm the upgrade uses your intended Apt source.

After the backups and maintenance window are in place, a normal Ubuntu security update is:

sudo apt upgrade

This may update other packages too. If you deliberately need an Nginx-only transaction, select the actual installed Nginx package or package family, preview it first using Apt’s simulation mode, and use —only-upgrade with that installed package. Avoid inventing a new repository or switching package variants as a shortcut.

A package upgrade may restart or reload Nginx automatically. Do not assume existing connections will be uninterrupted. If a service failure occurs, keep your console/SSH access and check the journal before changing TLS or firewall configuration.

After upgrading:

dpkg -l 'nginx*'
sudo nginx -t
systemctl status nginx --no-pager

If the package update did not already reload Nginx and the configuration passes its syntax test, reload safely:

sudo systemctl reload nginx
systemctl status nginx --no-pager
sudo journalctl -u nginx -n 50 --no-pager

If nginx -t fails, do not reload. Investigate the reported file and line, repair it using the backup, then test again. A reload is not the same as replacing configuration blindly.

If a full restart is required by the security update, arrange downtime and do it intentionally rather than assuming reload alone is enough to replace all old processes.

7. Prove HTTPS and certificate validity

Use a real hostname you control, from a device that reaches the proxy through the normal network path:

curl -I --max-time 15 https://YOUR_HOSTNAME
curl -IL --max-time 15 http://YOUR_HOSTNAME

Check that HTTPS responds without certificate warnings, that HTTP redirects appropriately if that is your design, and that the expected hostname reaches the expected application. A 401 or 403 can be correct for an intentionally protected endpoint.

Inspect the certificate presented on port 443:

openssl s_client -connect YOUR_HOSTNAME:443 -servername YOUR_HOSTNAME -verify_return_error </dev/null

Review the certificate chain and verification result. Also check the renewal method and the next expiry date. Do not disable TLS verification or switch to insecure HTTP to make a failing test pass.

For Let’s Encrypt with Certbot, check the certificates and renewal timers using the tools already installed on the host. If you do not use Certbot, use the corresponding tool for your certificate provider instead.

8. Verify the proxied application, not just Nginx

Nginx may start cleanly while the backend is broken or a Docker network has changed.

For each important service:

  1. Open the real HTTPS URL in a browser, ideally from outside your LAN if it is deliberately public.
  2. Confirm expected login and authorisation behaviour.
  3. Test a real operation, not only the home page.
  4. Check redirects, streaming and WebSocket connections where used.
  5. Review Nginx logs and application logs for new errors.
  6. Verify that a controlled reboot or maintenance restart preserves the intended access.

Useful host diagnostics:

sudo tail -n 100 /var/log/nginx/error.log
sudo journalctl -u nginx --since "15 minutes ago" --no-pager
ss -ltnp

If an upstream application is containerised, inspect its own health and networking separately. A 502/504 from Nginx is often an upstream problem rather than a certificate problem.

For a Jellyfin reverse proxy, specifically test login, library visibility, normal Direct Play, one known transcode if used, and remote streaming. SmallGrid’s Jellyfin Remote Access Safely guide explains why a private VPN may be a better fit than public reverse-proxy access.

9. If you use Nginx Proxy Manager in Docker

Do not run Apt commands on the Ubuntu host expecting them to patch the Nginx binary inside Nginx Proxy Manager. Nginx Proxy Manager (NPM) is its own application image, often installed with Docker Compose.

Identify the exact Compose project and image:

docker compose ls
docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Ports}}'

From the directory containing your actual NPM Compose file:

docker compose ps
docker compose config --images
docker compose config --services

Record the image tag, consult the Nginx Proxy Manager release notes, and check the image’s bundled Nginx version or vendor advisory. Do not assume the Ubuntu package-version table applies to NPM’s container.

Before any image change, protect:

  • the Compose file and secrets
  • the /data application configuration and database (or the separate database service)
  • the /etc/letsencrypt volume and certificate material
  • the current working image reference
  • the host’s expected 80/443 port mappings and admin interface restrictions

NPM’s documentation describes an upgrade using Docker Compose pull and up. For a controlled change, target your actual NPM service name rather than blindly refreshing unrelated application images, and verify the vendor’s guidance for your image tag:

docker compose pull YOUR_NPM_SERVICE
docker compose up -d YOUR_NPM_SERVICE
docker compose ps
docker compose logs --tail=100 YOUR_NPM_SERVICE

Replace YOUR_NPM_SERVICE with the service shown by docker compose config —services. A container update may migrate NPM’s database, so preserve a matching pre-update backup rather than simply rolling an image tag backwards.

Do not expose the NPM admin interface to the public internet without a strong, independently considered access-control design. Restrict admin access and test existing proxy hosts, certificates and renewals after the change.

See How to Safely Update Docker Engine on Ubuntu and How to Update Docker Containers Safely for the two distinct maintenance layers.

10. Final security checklist

  • Nginx packaging method and installed package version are recorded.
  • The applicable Ubuntu or vendor security advisory has been read.
  • The patched package or image is installed from a supported source.
  • Configuration and certificate-related recovery data are backed up.
  • nginx -t reports a valid configuration before any reload.
  • Nginx is active and the logs have no repeating new errors.
  • HTTPS, hostname matching and certificate verification succeed.
  • HTTP-to-HTTPS redirects behave as intended.
  • Backend services work through their real external URLs.
  • Proxy-only management interfaces are not unnecessarily public.
  • Certificate renewal and a reboot/restart recovery path have been checked.

Official sources


Recap

Patch the Nginx installation you actually run, check the relevant configuration-specific CVEs, back up before changing anything, and test the real HTTPS applications after the update. A healthy Nginx process is only the start of verification; the proxy is secure and useful only when its certificates, upstream connections and access controls behave as intended.