{"id":"EUVD-2025-34231","revision":"59fb89f7f016417a8b46c79e6d12b29a","records":[{"revision":"59fb89f7f016417a8b46c79e6d12b29a","observedAt":"2026-11-11T04:30:10.079+00:00","statement":{"source":"euvd","id":"EUVD-2025-34231","aliases":["CVE-2025-62366","GHSA-xw6r-chmh-vpmj"],"title":"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 us…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 4.0","vector":"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","score":2.9,"severity":null}],"references":["https://github.com/eladnava/mailgen/security/advisories/GHSA-xw6r-chmh-vpmj","https://github.com/eladnava/mailgen/commit/7279a983481d05c51aa451e86146f98aaa42fee9"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-34231","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Oct 14, 2025, 3:23:47 PM","dateUpdated":"Oct 14, 2025, 4:07:42 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2025-34231","identifiers":["EUVD-2025-34231","CVE-2025-62366","GHSA-xw6r-chmh-vpmj"]},"retained":false,"historicalAffected":[]}],"coverage":[]}