It should be patched since Dec 2019: https://twitter.com/jensvoid/status/1295633279727673344
/* DO NOT support attachment= in mailto urls. This poses a security fire hole!!!
[1] http://forums.mozillazine.org/viewtopic.php?f=30&t=1172555
In the end, the only viable option is to forbid this behaviour, and document a rationale so nobody will enable it back again.
Perhaps they could make this warning bigger, but other than that...