NONE · 0

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

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

Related Weaknesses (CWE)

References

FAQ

What is CVE-2025-59526?

CVE-2025-59526 is a documented vulnerability. 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 ...

How severe is CVE-2025-59526?

CVSS scoring is not yet available for CVE-2025-59526. Check NVD for updates.

Is there a patch for CVE-2025-59526?

Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.