CVE-2025-59526

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).
CVSS

No CVSS.

Configurations

No configuration.

History

22 Sep 2025, 20:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-09-22 20:15

Updated : 2025-09-22 21:22


NVD link : CVE-2025-59526

Mitre link : CVE-2025-59526

CVE.ORG link : CVE-2025-59526


JSON object : View

Products Affected

No product.

CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')