> CVE-2025-62366

« BACK_TO_HOME
PUBLISHED
2025-10-14 16:15
MODIFIED
2025-10-14 19:36
EPSS (Prob. Exploit)
0.43%
Top 64.0%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-10-25 GITHUB 🔗 2026-11-04 OSV 🔗 2026-09-20

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

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> GITHUB SECURITY ADVISORY

GHSA-xw6r-chmh-vpmj LOW

Mailgen has HTML Injection and XSS Filter Bypass in Plaintext Emails

AFFECTED PACKAGES:
NPM / mailgen
<= 2.0.30
Fixed in: 2.0.31

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Mailgen vulnerable to HTML injection and cross-site scripting via plaintext email generation

AFFECTED PACKAGES:
Unknown / Unknown
ALIASES:
GHSA-xw6r-chmh-vpmj

> HISTORIQUE DES MODIFICATIONS

Première apparition
14/10/2025 16:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 15:08
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME