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-84360 Overview
CVE-2026-84360 is an authentication bypass vulnerability in Nginx UI, a web user interface for managing the Nginx web server. Versions prior to 2.4.1 enforce RequireSecureSession on HTTP configuration mutation routes but omit this step-up control on /mcp and /mcp_message endpoints. The Model Context Protocol (MCP) routes expose nginx_config_add and nginx_config_modify operations behind ordinary authentication only. An OTP-enabled user holding a normal JSON Web Token (JWT) without a valid X-Secure-Session-ID header can create or modify Nginx configuration and trigger reload behavior. The flaw is tracked as [CWE-288: Authentication Bypass Using an Alternate Path or Channel].
Critical Impact
Authenticated users can bypass secure session enforcement to modify Nginx configuration and reload the web server through MCP routes.
Affected Products
- Nginx UI versions prior to 2.4.1
- /mcp HTTP endpoint
- /mcp_message HTTP endpoint
Discovery Timeline
- 2026-10-12 - CVE-2026-84360 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-84360
Vulnerability Analysis
Nginx UI implements a two-tier authentication model. Standard routes require a valid JWT via AuthRequired() middleware, while sensitive configuration mutations additionally require RequireSecureSession() middleware. The secure session middleware validates an X-Secure-Session-ID header issued after an OTP challenge, forming the step-up authentication control.
The MCP routes /mcp and /mcp_message expose configuration tools including nginx_config_add and nginx_config_modify. These routes were registered without the RequireSecureSession() middleware. Any authenticated user with a normal JWT can therefore invoke the MCP tool interface and manipulate Nginx configuration files, including reload operations that activate attacker-controlled directives.
Root Cause
The root cause is inconsistent middleware application across functionally equivalent routes. Direct configuration mutation endpoints enforced RequireSecureSession(), but the MCP transport reaching the same backend operations omitted the control. The design assumed MCP traffic inherited equivalent authorization, which it did not.
Attack Vector
An attacker with any authenticated Nginx UI account, including OTP-enabled accounts where the step-up session has not been established, sends MCP requests to /mcp or /mcp_message. The requests invoke nginx_config_add or nginx_config_modify tools and reload Nginx. Because configuration directives can execute arbitrary modules, load certificates, or redirect traffic, this bypass yields integrity and availability impact on the web infrastructure.
// Patch example from api/backup/router.go
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)
}
Source: GitHub Commit 23d1934
The commit hardens multiple routers by wrapping sensitive handlers in RequireSecureSession() groups, aligning MCP and direct routes under the same step-up policy.
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-84360
Indicators of Compromise
- HTTP POST requests to /mcp or /mcp_message paths lacking an X-Secure-Session-ID header on vulnerable Nginx UI deployments.
- MCP tool invocations referencing nginx_config_add or nginx_config_modify from accounts that have not completed OTP step-up.
- Unexpected Nginx reloads correlated with MCP endpoint activity in access logs.
- New or modified Nginx configuration files whose authorship does not match administrator activity.
Detection Strategies
- Inspect Nginx UI access logs for requests to /mcp* and alert when the X-Secure-Session-ID header is absent on configuration-mutating tool calls.
- Compare Nginx UI audit records against on-disk changes to nginx.conf and included snippets to surface configuration drift originating from MCP.
- Baseline the frequency of nginx -s reload invocations and alert on anomalies tied to MCP request bursts.
Monitoring Recommendations
- Forward Nginx UI application logs and Nginx access logs to a centralized logging platform for correlation.
- Enable file integrity monitoring on Nginx configuration directories such as /etc/nginx/.
- Monitor authentication events for JWT issuance without corresponding OTP challenges when MCP endpoints are reachable.
How to Mitigate CVE-2026-84360
Immediate Actions Required
- Upgrade Nginx UI to version 2.4.1 or later, which applies RequireSecureSession() to MCP configuration tools.
- Restrict network access to the Nginx UI management interface using firewall rules or a reverse proxy allowlist.
- Rotate JWTs and invalidate active sessions after upgrading to invalidate any pre-upgrade tokens.
- Audit recent Nginx configuration changes and reload events for unauthorized modifications.
Patch Information
The fix is available in Nginx UI v2.4.1. Review the GitHub Release v2.4.1, the GitHub Security Advisory GHSA-vc32-4gwf-77xp, and the patch commit for implementation details.
Workarounds
- Disable or network-isolate the /mcp and /mcp_message endpoints at a reverse proxy layer until the upgrade completes.
- Limit Nginx UI accounts to trusted administrators and remove unused credentials.
- Enforce network segmentation so only designated management hosts can reach the Nginx UI listener.
# Example reverse proxy block to deny MCP routes until patched
location ~ ^/mcp(_message)?$ {
deny all;
return 403;
}
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

