Skip to main content
VulnerabilityPublished

CVE-2025-59526: eladnava mailgen · Cross-site Scripting

Affects eladnava mailgenSource CVE Database V5

0

Not known to be exploited · CVSS 2.7 Low : upgrade to 2.0.30 when convenient.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 4.0 base score
2.7Low
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 37% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.0.30
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 Sep 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade eladnava mailgen to 2.0.30.

Affected software

ProductAffectedFixed in
eladnava mailgenAffected
  • <2.0.30
Fixed in
  • 2.0.30

AI-suggested

To mitigate this vulnerability, European organizations should upgrade mailgen to version 2.0.30 or later immediately. If upgrading is not feasible in the short term, implement a strict input sanitization process that strips all HTML tags and potentially dangerous characters from any user-generated content before passing it to the Mailgen.generatePlaintext(email) method. Additionally, review email generation workflows to ensure that no untrusted content is embedded without proper sanitization. Employ Content Security Policy (CSP) headers where applicable in webmail clients and educate users about the risks of interacting with unexpected or suspicious email content. Regularly audit dependencies for vulnerabilities and maintain an up-to-date software inventory to quickly identify and remediate such issues. Monitoring email logs for unusual content or patterns can also help detect exploitation attempts early.

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

References

Community reviews

Loading reviews…