Nginx UI: Unauthenticated MCP Endpoint Allows Remote Nginx Takeover
Title source: cnaDescription
Nginx UI is a web user interface for the Nginx web server. In versions 2.3.5 and prior, the nginx-ui MCP (Model Context Protocol) integration exposes two HTTP endpoints: /mcp and /mcp_message. While /mcp requires both IP whitelisting and authentication (AuthRequired() middleware), the /mcp_message endpoint only applies IP whitelisting - and the default IP whitelist is empty, which the middleware treats as "allow all". This means any network attacker can invoke all MCP tools without authentication, including restarting nginx, creating/modifying/deleting nginx configuration files, and triggering automatic config reloads - achieving complete nginx service takeover. At time of publication, there are no publicly available patches.
Exploits (3)
Nuclei Templates (1)
Nginx UI - Broken Access Control
CRITICALVERIFIEDby DhiyaneshDk
Shodan:
http.title:"Nginx UI"
FOFA:
title="Nginx UI"
Scores
CVSS v3
9.8
EPSS
0.0932
EPSS Percentile
92.8%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Lab Environment
Details
VulnCheck KEV
2026-04-13
CWE
CWE-306
Status
published
Products (3)
0xJacky/Nginx-UI
0Go
0xJacky/nginx-ui
<= 2.3.5
nginxui/nginx_ui
< 2.3.5
Published
Mar 30, 2026
Tracked Since
Mar 31, 2026