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 |
|
REFERENCES
Here, you will find a curated list of external links that provide in-depth information to CVE-2025-62366.