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.
Affected software
| Software | Affected versions |
|---|---|
Nginx UIServers and applications · cpe:a:nginxui:nginx_ui |
|
Nginx UIServers and applications · github:0xjacky/nginx-ui |
|
About Nginx UI
Yet another WebUI for Nginx
- 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
Source code Website Docker image
Vulnerabilities in Nginx UI
- In our list
- 75
- Published in the last 12 months
- 67
- Critical, last 12 months
- 11
- High, last 12 months
- 34
- Known exploited
- 0
- GHSA-57f3-39rr-2mwmNginx-UI certificate path validators read arbitrary absolute paths, enabling a file existence oracle and process-crash DoSLow 3.8 20 Nov 2026
- GHSA-c2cq-7453-7xpjRead-only service tokens still receive stored secrets (incomplete fix of GHSA-pw4f-pq6v-x57r)Medium 6.5 20 Nov 2026
- GHSA-xwxf-xc5j-p7hxDirective denylist bypass via mid-token '#' tokenizer differential (incomplete fix of GHSA-cf23-7qxj-xmhr)High 7.2 20 Nov 2026
- GHSA-2rjr-44wx-8qpgJwtSecret Overwrite via Settings API Causes Session Invalidation and MonopolyLow 3.8 12 Nov 2026
- GHSA-p355-qjwh-8hgmOpenAI API Key Exfiltration via Unprotected BaseUrl Setting ChangeLow 2.7 12 Nov 2026
- GHSA-hf3h-p3fr-3f2rFull backup exports expose reusable interactive login sessions to management credentialsMedium 6.6 12 Nov 2026
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