CVE 2.7 LOW

Mailgen: HTML injection vulnerability in plaintext e-mails_CVE-2025-59526

2.7 / 10
LOW
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:L/E:U

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

Basic Information

ID CVE-2025-59526
Source GitHub_M
Published Sep 22, 2025 at 19:27
Modified Sep 22, 2025 at 19:45

Affected Product

Vendor eladnava
Product mailgen
Version < 2.0.30
Affected Versions eladnava mailgen < 2.0.30

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.