Webmin through 2.670 contains a stored cross-site scripting vulnerability in postfix/view_mailq.cgi and sendmail/view_mailq.cgi that allows unauthenticated attackers to inject script via unsanitized MIME attachment filenames. Attackers can send a message with a crafted Content-Disposition or Content-Type filename that remains queued, executing script in the Webmin session of users viewing it.
https://github.com/webmin/webmin/issues/2941
https://github.com/webmin/webmin/commit/b8e0462f7b985751d0352665424ef4efa1bf19f2
https://github.com/webmin/webmin/blob/2.670/sendmail/view_mailq.cgi#L119
https://github.com/webmin/webmin/blob/2.670/postfix/view_mailq.cgi#L124
https://github.com/webmin/webmin