{"id":"CVE-2026-42221","published":"2026-05-04T20:09:37Z","modified":"2026-05-05T14:14:11Z","title":"nginx-ui: Unauthenticated First-Run Installer Allows Remote Initial Admin Claim","vendor":"0xJacky","product":"nginx-ui","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01342,"percentile":0.72047,"provenance":"source"},"cwes":[{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"references":[{"url":"https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-h27v-ph7w-m9fp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/0xJacky/nginx-ui/releases/tag/v2.3.8","tags":["x_refsource_MISC"]}],"priority":{"score":25.1,"factors":[{"name":"EPSS percentile","points":14.41},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.67}]},"exploitSources":{"nuclei":[{"id":"CVE-2026-42221","name":"Nginx UI <= 2.3.7 - Unauthenticated Installer Exposure","severity":"high","path":"http/cves/2026/CVE-2026-42221.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-42221.yaml"}],"provenance":"source"},"vendorSlug":"0xjacky","affectedVersions":[{"vendor":"0xJacky","product":"nginx-ui","versions":[">= 2.0.0, < 2.3.8"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-05T14:06:26.362325Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/0xJacky/Nginx-UI","vulnerableRanges":[">=2.0.0, <2.3.8","all versions"],"patched":["2.3.8"],"from":["GHSA-h27v-ph7w-m9fp","GO-2026-5412"],"provenance":"source"}],"summary":{"text":"The flaw is an unauthenticated first-run installer in the nginx-ui web user interface for the Nginx web server, where the public /api/install endpoint lets anyone reach the setup flow without authentication. An unauthenticated remote attacker who reaches a fresh instance before the legitimate operator completes setup can set the initial administrator's email, username, and password, which permanently takes over the instance; the request-encryption step protects only payload confidentiality and does not restrict who may install.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:24:43Z"},"euvd":{"id":"EUVD-2026-27135","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-107805","published":"2026-10-09","fixed":"1.9.10-0.20260901043436-8c9b9a1aff21","kev":false},{"cve":"CVE-2026-107804","published":"2026-10-09","fixed":"1.9.10-0.20260904075558-e30e331303fc","kev":false},{"cve":"CVE-2026-27944","published":"2026-03-05","fixed":"2.3.3","kev":false,"link":{"from":"CVE-2026-27944","to":"CVE-2026-42221","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/0xJacky/Nginx-UI","fromFixed":"2.3.3","toFixed":"2.3.8","daysApart":60}]}},{"cve":"CVE-2026-42221","published":"2026-05-04","fixed":"2.3.8","kev":false}],"package":"Go:github.com/0xJacky/Nginx-UI"}}