Webmin through 2.670 contains a stored cross-site scripting vulnerability in mailboxes/detach.cgi that allows unauthenticated mail senders to bypass the HTML sanitizer. Attackers can send HTML attachments with entity-obfuscated javascript: schemes or encoded script tags in iframe srcdoc to execute script in the Webmin session of users opening them.
https://github.com/webmin/webmin/issues/2941
https://github.com/webmin/webmin/commit/344104046116978770cd0edea11405590a14ee08
https://github.com/webmin/webmin/blob/2.670/web-lib-funcs.pl#L10547
https://github.com/webmin/webmin/blob/2.670/mailboxes/detach.cgi#L105
https://github.com/webmin/webmin