CVE-2025-59526: Eladnava Mailgen
Low severity, CVSS 2.7. EPSS: 0.4% chance of exploitation in the next 30 days.
mailgen is a Node.js package that generates responsive HTML e-mails for sending transactional mail. Prior to version 2.0.30, there is an HTML injection vulnerability in plaintext e-mails generated by Mailgen. Projects are affected if the Mailgen.generatePlaintext(email) method is used and given user-generated content. This vulnerability has been patched in version 2.0.30. A workaround involves stripping all HTML tags before passing any content into Mailgen.generatePlaintext(email).
Affected products
- Eladnava Mailgen: before 2.0.30 (fixed in 2.0.30)
Published 2025-09-22. Last modified 2026-06-17.