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-84315 Overview
CVE-2026-84315 is a missing authorization vulnerability [CWE-862] in Nginx UI, a web user interface for the Nginx web server. Versions prior to 2.4.1 fail to apply the RequireSecureSession middleware to multiple authenticated mutation routes. OTP-enabled users are expected to present a fresh X-Secure-Session-ID header before performing sensitive actions, but the server does not enforce this check on all mutation endpoints. An attacker with a stolen authenticated session can alter backups, DNS credentials, certificates, ACME users, Nginx control settings, and automation configurations without completing the OTP or passkey step-up. The issue is fixed in version 2.4.1.
Critical Impact
A stolen session token allows an attacker to modify TLS certificates, DNS credentials, and Nginx configuration without passing multi-factor step-up authentication.
Affected Products
- Nginx UI versions prior to 2.4.1
- api/backup/router.go CreateBackup endpoint
- api/certificate/router.go DNS credential and certificate endpoints
Discovery Timeline
- 2026-10-12 - CVE-2026-84315 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-84315
Vulnerability Analysis
Nginx UI implements a two-tier authentication model. Normal authenticated routes use the AuthRequired middleware, while sensitive mutation routes should additionally require RequireSecureSession. The secure session middleware validates a fresh X-Secure-Session-ID header derived from a successful OTP or passkey challenge. Developers omitted the step-up middleware on several high-impact router registrations, including backup creation, DNS credential management, certificate operations, ACME user handling, and Nginx control settings.
An attacker who obtains a valid session cookie, through XSS, token theft, or an open workstation, can call these endpoints directly. The server treats any valid session as sufficient authorization for state-changing operations that should have required MFA. Because Nginx UI manages TLS certificates and DNS automation credentials, exploitation allows the attacker to issue rogue certificates or exfiltrate DNS API tokens.
Root Cause
The root cause is missing authorization enforcement on specific Gin router groups. The RequireSecureSession middleware exists in the codebase but was not attached to all routes that perform privileged mutations, violating the project's documented step-up authentication model.
Attack Vector
Exploitation requires network access to the Nginx UI web interface and a valid low-privilege authenticated session. No user interaction is needed after session theft. The attacker sends crafted POST or DELETE requests to the affected endpoints without the X-Secure-Session-ID header.
// Patch: api/backup/router.go - adds RequireSecureSession middleware
func InitRouter(r *gin.RouterGroup) {
- r.GET("/backup", middleware.AuthRequired(), CreateBackup)
+ r.GET("/backup", middleware.AuthRequired(), middleware.RequireSecureSession(), CreateBackup)
r.POST("/restore", middleware.AuthRequired(), middleware.RequireSecureSession(), middleware.EncryptedForm(), RestoreBackup)
}
// Patch: api/certificate/router.go - groups sensitive routes under RequireSecureSession
func InitDNSCredentialRouter(r *gin.RouterGroup) {
r.GET("dns_credentials", GetDnsCredentialList)
r.GET("dns_credentials/:id", GetDnsCredential)
- r.POST("dns_credentials", AddDnsCredential)
- r.POST("dns_credentials/:id", EditDnsCredential)
- r.DELETE("dns_credentials/:id", DeleteDnsCredential)
+ o := r.Group("", middleware.RequireSecureSession())
+ {
+ o.POST("dns_credentials", AddDnsCredential)
+ o.POST("dns_credentials/:id", EditDnsCredential)
+ o.DELETE("dns_credentials/:id", DeleteDnsCredential)
+ }
}
// Source: https://github.com/0xJacky/nginx-ui/commit/23d1934099b05b2a01589b48129dc3d3159d91c2
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-84315
Indicators of Compromise
- POST or DELETE requests to /api/dns_credentials, /api/certs, /api/backup, or /api/acme_users lacking an X-Secure-Session-ID request header.
- Unexpected creation or modification of TLS certificates, ACME users, or DNS provider credentials in Nginx UI audit logs.
- New or modified automatic backup jobs that export configuration to attacker-controlled destinations.
Detection Strategies
- Inspect HTTP access logs for authenticated mutation requests to sensitive Nginx UI endpoints without the step-up header.
- Compare Nginx UI configuration state and certificate inventory against a known-good baseline on a scheduled basis.
- Alert on Nginx UI mutations originating from source IPs or user agents that differ from normal administrator activity.
Monitoring Recommendations
- Forward Nginx UI application logs and reverse-proxy access logs to a centralized log pipeline for retention and query.
- Monitor the filesystem path containing Nginx configurations, certificates, and the Nginx UI database for unexpected writes.
- Track outbound ACME and DNS API calls originating from the Nginx UI host for anomalous volume or destinations.
How to Mitigate CVE-2026-84315
Immediate Actions Required
- Upgrade Nginx UI to version 2.4.1 or later on all hosts running the web interface.
- Rotate all DNS provider credentials, ACME account keys, and TLS private keys managed by Nginx UI if exposure is suspected.
- Invalidate active Nginx UI sessions and require administrators to re-authenticate after patching.
Patch Information
The fix is included in Nginx UI 2.4.1. The remediation attaches the RequireSecureSession middleware to backup, DNS credential, certificate, ACME, Nginx control, and site or stream automation routes. See the GitHub Security Advisory GHSA-5v7c-xpfp-p65m, the patch commit, and the v2.4.1 release notes.
Workarounds
- Restrict network access to the Nginx UI management interface using a VPN, bastion host, or IP allow list until the patch is applied.
- Enforce OTP or passkey enrollment for all Nginx UI users and audit accounts without multi-factor authentication.
- Place Nginx UI behind a reverse proxy that enforces mutual TLS or an additional authentication layer for state-changing HTTP methods.
# Upgrade Nginx UI to the patched release
docker pull uozi/nginx-ui:2.4.1
docker stop nginx-ui && docker rm nginx-ui
docker run -d --name nginx-ui \
-v /etc/nginx:/etc/nginx \
-v /etc/nginx-ui:/etc/nginx-ui \
-p 127.0.0.1:9000:80 \
uozi/nginx-ui:2.4.1
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

