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).
INFO
Published Date :
2025-09-22T19:27:53.323Z
Last Modified :
2025-09-22T19:45:47.069Z
Source :
GitHub_M
AFFECTED PRODUCTS
The following products are affected by CVE-2025-59526 vulnerability.
| Vendors | Products |
|---|---|
| Mailgen |
|
REFERENCES
Here, you will find a curated list of external links that provide in-depth information to CVE-2025-59526.
CVSS Vulnerability Scoring System
Detailed values of each vector for above chart.
Attack Vector
Attack Complexity
Attack Requirements
Privileges Required
User Interaction
VS Confidentiality
VS Integrity
VS Availability
SS Confidentiality
SS Integrity
SS Availability