CVE-2025-59526: Mailgen: HTML injection vulnerability in plaintext e-mails
(updated )
An HTML injection vulnerability in plaintext emails generated by Mailgen has been discovered. Your project is affected if you use the Mailgen.generatePlaintext(email);
method and pass in user-generated content. The issue was discovered and reported by Edoardo Ottavianelli (@edoardottt).
References
Code Behaviors & Features
Detect and mitigate CVE-2025-59526 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →