CVE-2025-59526 - CVE House
Back to Database
Status published Low CVE-2025-59526

Mailgen: HTML injection vulnerability in plaintext e-mails

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

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-59526

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

mailgen
Vulnerable Versions:
< 2.0.30

Timeline

Official Publish: September 22nd, 2025
Last Modified: September 22nd, 2025
Added to House: July 22nd, 2026

CVSS Vectors

Weaknesses (CWE)