p PatchFirst

CVE-2025-62366

CVE-2025-62366 · Mailgen vulnerable to HTML injection and cross-site scripting via plaintext email generation

Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.

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.

CVSS 2.9 · Faible · EPSS 0,4% · Correctif disponible

Publication
Mise à jour

Pile logicielle: node

Produits et versions concernés

  • mailgen

    Versions du logiciel
    • < 2.0.31: Concernée

    Aucun correctif publié

  • mailgen npm

    Plages de versions concernées
    • SEMVER: < 2.0.31

    Mettez à jour vers 2.0.31

Sources originales

Vérifiez votre serveur →