Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-107808 Overview
Nginx UI, a web user interface for the Nginx web server, contains an authentication bypass vulnerability in versions 2.0.0 through 2.4.x. The POST /api/login endpoint checks EnabledOTP but does not require a WebAuthn assertion when EnabledPasskey is true and no TOTP secret is configured. A passkey-only account is issued a session after password verification alone, despite Enabled2FA reporting that the account has a second factor. An attacker who obtains the password can take over the account and reach administrative functionality without the registered passkey. The issue is fixed in version 2.5.0.
Critical Impact
Password-only compromise of accounts protected exclusively by WebAuthn passkeys grants full administrative access to Nginx UI, exposing web server configuration to tampering.
Affected Products
- Nginx UI 2.0.0 through 2.4.x
- Fixed in Nginx UI 2.5.0
- Deployments where accounts are configured with passkey-only second factor (no TOTP secret)
Discovery Timeline
- 2026-10-09 - CVE-2026-107808 published to NVD
- 2026-10-09 - Last updated in NVD database
Technical Details for CVE-2026-107808
Vulnerability Analysis
The flaw is an authentication bypass [CWE-287] in the Nginx UI login flow. The server exposes a two-factor authentication state via Enabled2FA, which returns true whenever either TOTP or a passkey is registered. However, the login handler's enforcement logic only checked EnabledOTP after password verification. When an account was configured with a passkey but no TOTP secret, the handler fell through to session issuance without ever requiring a WebAuthn assertion.
This mismatch between the policy signal (Enabled2FA) and the enforcement gate (EnabledOTP) collapses the authentication requirement from password + passkey down to password only for passkey-only accounts.
Root Cause
The root cause is incomplete second-factor enforcement in api/user/auth.go. The code evaluated TOTP enrollment to decide whether to challenge the client, but did not add a parallel branch requiring a signed WebAuthn assertion for accounts where EnabledPasskey is true. Administrators relying on Enabled2FA as a policy signal received false assurance that passkey-only accounts were protected by a second factor.
Attack Vector
An attacker with knowledge of a victim's password submits a standard POST /api/login request. The server validates the password, observes that no TOTP secret is registered, and issues a session cookie. The registered passkey is never challenged. From the authenticated session, the attacker reaches administrative endpoints that control Nginx configuration, certificates, and server state.
// Patch excerpt: api/user/auth.go introduces a PasskeyRequired response code
// so the login handler can short-circuit and demand a WebAuthn assertion
// instead of issuing a session.
const (
ErrMaxAttempts = 4291
PasskeyRequired = 198
Enabled2FA = 199
Error2FACode = 4034
LoginSuccess = 200
)
type LoginResponse struct {
// ...
Source: GitHub commit 95cd21b
// Patch excerpt: api/user/2fa.go switches from cache.Get to cache.Take so
// the passkey session identifier can only be consumed once.
passkeySessionID := c.GetHeader("X-Passkey-Session-ID")
sessionDataBytes, ok := cache.Take(passkeySessionID)
if !ok {
cosy.ErrHandler(c, user.ErrSessionNotFound)
return
}
Source: GitHub commit 95cd21b
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-107808
Indicators of Compromise
- Successful POST /api/login responses with HTTP 200 for accounts where the audit log shows EnabledPasskey=true and no TOTP enrollment.
- Session issuance to accounts that have no corresponding WebAuthn assertion event in the same login flow.
- Administrative changes to Nginx configuration, TLS certificates, or user accounts from sessions that bypassed passkey challenge.
Detection Strategies
- Review Nginx UI application logs for login success events on passkey-only accounts that lack a preceding X-Passkey-Session-ID header exchange.
- Correlate authentication events with WebAuthn assertion records; absence of an assertion for a passkey-enabled account indicates exploitation.
- Alert on administrative API calls (/api/nginx, /api/config, /api/user) initiated by sessions created without a second-factor challenge.
Monitoring Recommendations
- Enable verbose authentication logging on all Nginx UI instances and ship events to a centralized log store.
- Monitor for anomalous source IPs or user agents authenticating to administrative accounts.
- Track configuration file changes on Nginx hosts to detect unauthorized modifications stemming from account takeover.
How to Mitigate CVE-2026-107808
Immediate Actions Required
- Upgrade all Nginx UI instances to version 2.5.0 or later without delay.
- Rotate passwords for every account on affected instances, especially those protected only by a passkey.
- Invalidate all active sessions after upgrade to force re-authentication under the fixed flow.
- Audit administrative actions performed since the first vulnerable version was deployed.
Patch Information
The fix is included in Nginx UI release v2.5.0. Technical details of the enforcement change are documented in GHSA-45gv-9wjv-xh7p and the corresponding patch commit, which adds a PasskeyRequired response code and consumes passkey session identifiers with cache.Take.
Workarounds
- Enroll a TOTP secret on every account to force the existing EnabledOTP enforcement path until upgrade is possible.
- Restrict network access to the Nginx UI administrative interface using firewall rules or a reverse proxy with mutual TLS.
- Place the Nginx UI behind a VPN or bastion host so password-only compromise cannot be exercised from the public internet.
# Verify installed Nginx UI version and upgrade if below 2.5.0
nginx-ui --version
# Example Docker upgrade
docker pull uozi/nginx-ui:2.5.0
docker stop nginx-ui && docker rm nginx-ui
docker run -d --name nginx-ui -p 9000:9000 uozi/nginx-ui:2.5.0
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

