0xJacky nginx-ui
nginx-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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.0.0, < 2.3.8
Fixed in 2.3.8
Mitigation
Upgrade nginx-ui to 2.3.8 or later.
References
- Vendor advisory github.com/0xJacky/nginx-ui/security/advisorie…
- Release notes github.com/0xJacky/nginx-ui/releases/tag/v2.3.…
Timeline
Days relative to CVE publicationFirst public PoC 49 days after publication; not in CISA KEV. First PoC: fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238- (created 23 Jun 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238- | 23 Jun 2026 +49 d | 0 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Nginx UI <= 2.3.7 - Unauthenticated Installer Exposure | 1 Sep 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /api/crypto/public_key
- Ports
- 8080, 8081
- Seen in
- 1 repo: fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238-
- Evidence
- fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238-/scripts/encrypt_password.py:12
GET /api/install
- Ports
- 8080, 8081
- Seen in
- 1 repo: fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238-
- Evidence
- fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238-/README.md:84 fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238-/scripts/exploit_42221.py:31 fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238-/scripts/test_patched.py:8
POST /api/crypto/public_key
- Content-Type
application/json- Ports
- 8080, 8081
- Seen in
- 1 repo: fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238-
- Evidence
- fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238-/scripts/test_patched.py:14
POST /api/install
- Content-Type
application/json- Ports
- 8080, 8081
- Seen in
- 1 repo: fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238-
- Evidence
- fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238-/scripts/test_patched.py:37
POST /api/restore
- Content-Type
application/json- Ports
- 8080, 8081
- Seen in
- 1 repo: fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238-
- Evidence
- fuchiuebusi-lab/nginx-ui-CVE-2026-42221-CVE-2026-42238-/scripts/test_patched.py:57
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/crypto/public_key(?:[?#].*)?$
(?i)^/api/install(?:[?#].*)?$
(?i)^/api/crypto/public_key(?:[?#].*)?$
(?i)^/api/install(?:[?#].*)?$
(?i)^/api/restore(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2026-42221 0xJacky nginx-ui exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/crypto/public_key"; reference:url,poc.griffinguard.io/cve/CVE-2026-42221; classtype:web-application-attack; sid:9017855; rev:1;)
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2026-42221 0xJacky nginx-ui exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/install"; reference:url,poc.griffinguard.io/cve/CVE-2026-42221; classtype:web-application-attack; sid:9253175; rev:1;)
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2026-42221 0xJacky nginx-ui exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/crypto/public_key"; reference:url,poc.griffinguard.io/cve/CVE-2026-42221; classtype:web-application-attack; sid:9892505; rev:1;)
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2026-42221 0xJacky nginx-ui exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/install"; reference:url,poc.griffinguard.io/cve/CVE-2026-42221; classtype:web-application-attack; sid:9533577; rev:1;)
alert http any any -> $HOME_NET [8080,8081] (msg:"GG PoC-Monitor CVE-2026-42221 0xJacky nginx-ui exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/restore"; reference:url,poc.griffinguard.io/cve/CVE-2026-42221; classtype:web-application-attack; sid:9072912; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: 0xJacky nginx-ui exploit attempt (CVE-2026-42221)
id: gg-pocmon-cve-2026-42221-9017855
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42221. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-42221
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/crypto/public_key'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.42221
title: 0xJacky nginx-ui exploit attempt (CVE-2026-42221)
id: gg-pocmon-cve-2026-42221-9253175
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42221. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-42221
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/install'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.42221
title: 0xJacky nginx-ui exploit attempt (CVE-2026-42221)
id: gg-pocmon-cve-2026-42221-9892505
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42221. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-42221
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/crypto/public_key'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.42221
title: 0xJacky nginx-ui exploit attempt (CVE-2026-42221)
id: gg-pocmon-cve-2026-42221-9533577
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42221. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-42221
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/install'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.42221
title: 0xJacky nginx-ui exploit attempt (CVE-2026-42221)
id: gg-pocmon-cve-2026-42221-9072912
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42221. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-42221
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/restore'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.42221