CVE-2026-42221
CRITICAL 9.8CVSS 3.1Nginx-UI: Unauthenticated First-Run Installer Allows Remote Initial Admin Claim
Nginx UI is a web user interface for the Nginx web server. From version 2.0.0 to before version 2.3.8, 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. This issue has been patched in version 2.3.8.
- Published
- 4 May 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-306
- Also known as
- GHSA-h27v-ph7w-m9fpGO-2026-5412
- Sources
- NVDJSONOSV GHSA-h27v-ph7w-m9fpJSONOSV GO-2026-5412JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nginxui | nginx_uicpe:2.3:a:nginxui:nginx_ui:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.3.8 | 2.3.8 |
| OSV | Go | github.com/0xJacky/Nginx-UI | >= 2.0.0, < 2.3.8 | 2.3.8 |
| OSV | Go | github.com/0xJacky/Nginx-UI | all versions |
References
- https://github.com/0xJacky/nginx-ui/releases/tag/v2.3.8 · Release Notes, WEB
- https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-h27v-ph7w-m9fp · Exploit, Mitigation, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-42221 · ADVISORY
- https://github.com/0xJacky/nginx-ui · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 4 May 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 May 2026)