SEVERITY AND EXPLOITATION CONTEXT

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

Review published vectors, EPSS probability and CISA KEV status independently.

Lookup reads saved CVE and CISA snapshots from this site and requests EPSS from FIRST. The CVE source is contacted when a saved record is unavailable or you request a refresh. External providers receive your IP address. Finding notes and saved assessments are not sent by this feature.

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.

Published CVE snapshot: 2026-10-22. Record last updated: 2025-10-14T16:07:42.468Z. The live panels refresh separately; this snapshot remains available if a source cannot be reached.

View the CVE Program source record

GitHub_M · CVSS 4.0: 2.9 Low

Calculated from the published vector. Base score: 6.3. Provider-reported Base score: 2.9.

Vector and metric explanationsCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P
MetricValueMeaning
Attack vector (AV)NReachable across a network boundary, including internet or routed network paths.
Attack complexity (AC)LThere is no specific security-enhancing condition that the attacker must overcome.
Attack requirements (AT)PA specific deployment or execution condition is necessary, such as winning a race or gaining an on-path position.
Privileges required (PR)NThe attacker needs no privileges before exploiting the vulnerability.
User interaction (UI)NNo other user must participate for exploitation to succeed.
Confidentiality (VC)NNo confidentiality impact is demonstrated.
Integrity (VI)NNo integrity impact is demonstrated.
Availability (VA)NNo availability impact is demonstrated.
Confidentiality (SC)LLimited impact is established in a system beyond the vulnerable system.
Integrity (SI)LLimited impact is established in a system beyond the vulnerable system.
Availability (SA)NNo impact to this property is established in a subsequent system.
Exploit maturity (E)PPublic proof-of-concept evidence exists, but known attacks and ready-to-use exploit tooling are not established.

These definitions explain provider selections; they do not independently verify exploitation.

Review vector in calculator

Affected products reported by the provider

  • eladnava · mailgen

Consult the advisory for affected version ranges, configurations and remediation. A product listing alone does not establish that your installation is vulnerable.

Source references (2)

Interpret severity and exploitation separately

CVSS measures technical severity. EPSS estimates exploitation probability over the next 30 days. CISA KEV lists known exploited vulnerabilities. A missing EPSS result is not zero probability, and absence from KEV does not prove no exploitation. Review your deployment and retain the version, vector and evidence when documenting a finding.

Browse CVEs from 2025 · All published CVEs · Calculation methodology