CVE-2025-59526
LOWmailgen < 2.0.30 - Cross-Site Scripting via Plaintext Email Generation
Title source: llmDescription
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).
References (2)
Core 2
Core References
Vendor Advisory x_refsource_confirm
https://github.com/eladnava/mailgen/security/advisories/GHSA-j2xj-h7w5-r7vp
Scores
CVSS v4
2.7
EPSS
0.0041
EPSS Percentile
32.7%
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-79
Status
published
Products (2)
eladnava/mailgen
< 2.0.30
npm/mailgen
0 - 2.0.30npm
Published
Sep 22, 2025
Tracked Since
Feb 18, 2026