Gophish versions through 0.12.1 have stored and reflected cross-site scripting (XSS) vulnerabilities. These flaws allow attackers who control or intercept SMTP server error messages to inject malicious scripts. The injected scripts can execute when administrators view campaign results or send test emails, potentially leading to theft of API keys.