Low severityOSV Advisory· Published Sep 22, 2025· Updated Apr 15, 2026
CVE-2025-59526
CVE-2025-59526
Description
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).
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
mailgennpm | < 2.0.30 | 2.0.30 |
Affected products
2Patches
Vulnerability mechanics
References
4News mentions
0No linked articles in our index yet.