Improper handling of email replacement allows unauthenticated users to perform Stored Cross-Site Scripting (XSS) attacks. This issue occurs due to unsafe handling of email replacement output and improper input validation or output encoding, which allows attacker-controlled content to be persisted and rendered as a script. An attacker can remotely inject crafted payloads during the email replacement process that are later served to visitors or administrators. This can lead to arbitrary JavaScript execution in the victim's browser, potentially resulting in administrative session hijacking, malicious redirects, and site takeover.