Description

mailgen is a Node.js package that generates responsive HTML e-mails for sending transactional mail. Mailgen versions through 2.0.30 contain an HTML injection vulnerability in plaintext emails produced by the generatePlaintext method when user‑generated content is supplied. The function attempts to remove HTML tags, but if tags are provided as encoded HTML entities they are not removed and are later decoded, resulting in active HTML (for example an img tag with an event handler) in the supposed plaintext output. In contexts where the generated plaintext string is subsequently rendered as HTML, this can allow execution of attacker‑controlled JavaScript. Versions 2.0.31 and later contain a fix. No known workarounds exist.

INFO

Published Date :

2025-10-14T15:23:47.600Z

Last Modified :

2025-10-14T16:07:42.468Z

Source :

GitHub_M
AFFECTED PRODUCTS

The following products are affected by CVE-2025-62366 vulnerability.

Vendors Products
Mailgen
  • Mailgen
REFERENCES

Here, you will find a curated list of external links that provide in-depth information to CVE-2025-62366.

CVSS Vulnerability Scoring System

Detailed values of each vector for above chart.
Attack Vector
Attack Complexity
Attack Requirements
Privileges Required
User Interaction
VS Confidentiality
VS Integrity
VS Availability
SS Confidentiality
SS Integrity
SS Availability