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

Tue, 23 Sep 2025 16:15:00 +0000

Type Values Removed Values Added
First Time appeared Mailgen
Mailgen mailgen
Vendors & Products Mailgen
Mailgen mailgen

Tue, 23 Sep 2025 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Low


Mon, 22 Sep 2025 20:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 22 Sep 2025 19:45:00 +0000

Type Values Removed Values Added
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).
Title Mailgen: HTML injection vulnerability in plaintext e-mails
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 2.7, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published: 2025-09-22T19:27:53.323Z

Updated: 2025-09-22T19:45:47.069Z

Reserved: 2025-09-17T17:04:20.372Z

Link: CVE-2025-59526

cve-icon Vulnrichment

Updated: 2025-09-22T19:45:39.344Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-09-22T20:15:39.200

Modified: 2025-09-22T21:22:16.313

Link: CVE-2025-59526

cve-icon Redhat

Severity : Low

Publid Date: 2025-09-22T19:27:53Z

Links: CVE-2025-59526 - Bugzilla