CVE Explorer
CVE-2025-62366
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 p
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"mailgen","vendor":"eladnava","versions":[{"status":"affected","version":"< 2.0.31"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:1eaab6527866cb40dccef0fbcdcf7e97a21f954fd27ec0cb4a04da9db5433cbd · sha256:bef845e8dbbb8d79… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":2.9,"baseSeverity":"LOW","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","userInteraction":"NONE","vectorString":"CVSS: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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:1eaab6527866cb40dccef0fbcdcf7e97a21f954fd27ec0cb4a04da9db5433cbd · sha256:bef845e8dbbb8d79… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:1eaab6527866cb40dccef0fbcdcf7e97a21f954fd27ec0cb4a04da9db5433cbd · sha256:bef845e8dbbb8d79… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/eladnava/mailgen/commit/7279a983481d05c51aa451e86146f98aaa42fee9","tags":["x_refsource_MISC"],"url":"https://github.com/eladnava/mailgen/commit/7279a983481d05c51aa451e86146f98aaa42fee9"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1eaab6527866cb40dccef0fbcdcf7e97a21f954fd27ec0cb4a04da9db5433cbd · sha256:bef845e8dbbb8d79… · /containers/cna/references/1
{"name":"https://github.com/eladnava/mailgen/security/advisories/GHSA-xw6r-chmh-vpmj","tags":["x_refsource_CONFIRM"],"url":"https://github.com/eladnava/mailgen/security/advisories/GHSA-xw6r-chmh-vpmj"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:1eaab6527866cb40dccef0fbcdcf7e97a21f954fd27ec0cb4a04da9db5433cbd · sha256:bef845e8dbbb8d79… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.