Webmin through 2.670 contains a stored cross-site scripting vulnerability in the Servers Index module that allows unauthenticated adjacent attackers to inject scripts via the realhost field of UDP discovery replies. Attackers on the same broadcast domain can answer discovery scans with HTML or JavaScript stored by find_servers() and rendered unescaped by edit_serv.cgi, executing in Webmin user sessions.
https://github.com/webmin/webmin/issues/2941
https://github.com/webmin/webmin/commit/766557590de2a844fe0f3c37de9673b48497b3f9
https://github.com/webmin/webmin/blob/2.670/servers/servers-lib.pl#L440
https://github.com/webmin/webmin/blob/2.670/servers/edit_serv.cgi#L49
https://github.com/webmin/webmin