Authentication bypass using an alternate path or channel in nginx-ui - #VU157116
Published: October 22, 2026
Vulnerability details
The vulnerability allows a remote user to bypass HTTP MCP authentication, disclose sensitive configuration information, and potentially modify nginx configuration through management tools.
The vulnerability exists due to improper authentication in the mcpAuthRequired() middleware in mcp/router.go when handling HTTP requests to POST /mcp and POST /mcp_message. A remote user can submit a valid 16-character WebSocket short token as an Authorization: Bearer credential to invoke MCP management tools outside the token's intended WebSocket scope.