CVE-2026-42221 json
nginx-ui: Unauthenticated First-Run Installer Allows Remote Initial Admin Claim
published 6mo ago modified 14d ago also EUVD-2026-27135 , GHSA-h27v-ph7w-m9fp , GO-2026-5412
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 71%
- public exploits
- 0
- none known, plus a Nuclei check
Summary
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.
Patch / fix
- go github.com/0xJacky/Nginx-UI 2.3.8
- nginxui nginx_ui 2.3.8
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
opensuse advisories openSUSE-SU-2026:21483-1
Is CVE-2026-42221 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 6mo ago
Exploit prediction
1.34% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- Nuclei template Nginx UI <= 2.3.7 - Unauthenticated Installer Exposure nuclei detection template
- github.com https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-h27v-ph7w-m9fp referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/0xJacky/Nginx-UI | >=2.0.0, <2.3.8 all versions |
2.3.8 |
Affected products
- 0xJacky nginx-ui
Classification
- Weakness
-
- CWE-306 Missing Authentication for Critical Functionality
References
-
github.com
/0xJacky/nginx-ui/security/advisories/GHSA-h27v-ph7w-m9fp
exploit, web, mitigation, vendor-advisory, advisory
-
github.com
/0xJacky/nginx-ui/releases/tag/v2.3.8
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-42221
advisory
-
github.com
/0xJacky/nginx-ui
package
Sources
- CVE List CVE-2026-42221
- GitHub Advisory GHSA-h27v-ph7w-m9fp
- NVD CVE-2026-42221
- OSV GO-2026-5412
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.