CVE-2026-42221
Description
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.
Weakness
- CWE-306: Missing Authentication for Critical Functionality
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-05-05 |
Timeline
- 2026-05-04Published by the CNA20:09 UTC
- 2026-05-05CISA SSVC decision recorded1 day after publication
- 2026-05-06GitHub advisory published (GHSA-h27v-ph7w-m9fp)2 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2026-42221: Nginx UI <= 2.3.7 - Unauthenticated Installer Exposure
GitHub advisory GHSA-h27v-ph7w-m9fp, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/0xJacky/Nginx-UI | from 2.0.0 before 2.3.8 | 2.3.8 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| nginxui nginx_ui | from 2.0.0 before 2.3.8fixed in 2.3.8 | 2.3.8 |
References
- https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-h27v-ph7w-m9fp
- https://github.com/0xJacky/nginx-ui/releases/tag/v2.3.8
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-42221'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-42221'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-42221'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-42221'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).