# CVE-2026-42221: nginx-ui: Unauthenticated First-Run Installer Allows Remote Initial Admin Claim

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.34%, higher than 72% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-04T20:09:37.308Z
- Modified: 2026-10-26T19:10:00.163Z
- Also known as: GHSA-h27v-ph7w-m9fp, GO-2026-5412
- Weaknesses: CWE-306
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- 0xJacky nginx-ui: >= 2.0.0, < 2.3.8
- github.com/0xJacky/Nginx-UI (Go): from 2.0.0 before 2.3.8; all versions
- nginxui nginx_ui: from 2.0.0 before 2.3.8

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-h27v-ph7w-m9fp> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://github.com/0xJacky/nginx-ui/releases/tag/v2.3.8> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42221> (advisory)
- <https://github.com/0xJacky/nginx-ui> (package)

## Sources

- CVE List: [CVE-2026-42221](https://www.cve.org/CVERecord?id=CVE-2026-42221), CVE Terms of Use, modified 2026-05-05
- GitHub Advisory Database: [GHSA-h27v-ph7w-m9fp](https://github.com/advisories/GHSA-h27v-ph7w-m9fp), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5412](https://pkg.go.dev/vuln/GO-2026-5412), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-42221](https://nvd.nist.gov/vuln/detail/CVE-2026-42221), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42221 · Whole record: https://cve.day/CVE-2026-42221.json · Rebuilt by cve.day 2026-11-25T22:59:20.563Z
