kcve.ai취약점 정보 · 내 자산 확인

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

설명

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.

영향 받는 제품 제품 1개

  • eladnava

    mailgen

    해결 버전 있음

    영향 받는 버전

    • 2.0.31 미만

    해결 버전

    • 2.0.31 이상

참고 자료 2건

‹ 목록

점검 지원 범위 문의

도입 문의