CVE-2025-59526CWE-79cross-site-scripting

CVE-2025-59526

published September 23, 2025

CVSS
2.7
EPSS
0%
Percentile
37.1
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS
2.7 · NONE
CVSS v4.0
Not supplied
EPSS
0.00438 · 37.1th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2025-09-23T00:15Z
References (2)
EPSS history
Timeline
  • 22 SEP 19:27Z
    Mailgen: HTML injection vulnerability in plaintext e-mails
    cvelistv5