All vulnerabilities

Servers and applications

CVE-2026-42221

Unauthenticated First-Run Installer Allows Remote Initial Admin Claim

Severity
Critical 9.8
Published
27 Apr 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.3.8
Exploit chance
1.3% in the next 30 daysHigher than 71% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Missing authentication (CWE-306)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Also known as
GHSA-h27v-ph7w-m9fp
Sources
NVD, Project advisories (GitHub)

Description

An unauthenticated network attacker can claim the initial administrator account on a fresh nginx-ui instance during the first-run setup window. The public /api/install endpoint is reachable without authentication, and the request-encryption flow only protects payload confidentiality in transit; it does not authenticate who is allowed to perform installation. A remote attacker who reaches the service before the legitimate operator can set the admin email, username, and password, causing permanent initial-instance takeover.

The vulnerable route is exposed publicly through the main API router. router/routers.go:61-70 mounts system.InitPublicRouter(root) under /api, and api/system/router.go:16-19 registers both GET /api/install and POST /api/install without AuthRequired().

The install handler only checks whether the instance is already installed and whether more than ten minutes have elapsed since startup.

From 0xJacky/nginx-ui's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Nginx UIServers and applications · cpe:a:nginxui:nginx_ui
  • From 2.0.0 before 2.3.8
Nginx UIServers and applications · github:0xjacky/nginx-ui
  • From 2.0.0 before 2.3.8

About Nginx UI

Yet another WebUI for Nginx

From its GitHub repository.
Docker Hub pulls
1,512,532Docker Hub, 15 Nov 2026
GitHub stars
11,783GitHub, 15 Nov 2026
Forks
921GitHub, 15 Nov 2026
Latest release
v3.0.3GitHub, 15 Nov 2026
Released
12 Nov 2026GitHub
License
AGPL-3.0GitHub
First published on GitHub
19 Feb 2021GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-42221
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-42221
  • GitHub Advisory Database https://github.com/advisories/GHSA-h27v-ph7w-m9fp
  • github.com https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-h27v-ph7w-m9fp