A flaw in the `downloadAttachment()` method allows remote attackers to execute arbitrary scripts on affected installations. This occurs due to insufficient validation of user-supplied data, enabling script injection in the context of the current user. Exploitation requires user interaction, such as visiting a malicious page or opening a malicious file.