CVE-2025-62366
Last modified
CVE-2025-62366 is a low-severity vulnerability rated 2.9/10 on the CVSS scale. 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. EPSS estimates a 0.39% chance of exploitation in the next 30 days.
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.
Metrics
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-62366?
How severe is CVE-2025-62366?
How do I fix CVE-2025-62366?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-62360WeGIA is an open source Web Manager for Institutions with a …8.8
- CVE-2025-62361WeGIA is an open source Web Manager for Institutions with a …6.1
- CVE-2025-62362gpp-burgerportaal is a Dutch government citizen portal appli…6.9
- CVE-2025-62363yt-grabber-tui is a terminal user interface application for …7.8
- CVE-2025-62364text-generation-webui is an open-source web interface for ru…6.2
- CVE-2025-62365LibreNMS is an open-source, PHP/MySQL/SNMP-based network mon…6.1
- CVE-2025-62367Taiga is an open source project management platform. In vers…4.8
- CVE-2025-62368Taiga is an open source project management platform. In vers…9
- CVE-2025-62369Xibo is an open source digital signage platform with a web c…7.2
- CVE-2025-6237A vulnerability in invokeai version v6.0.0a1 and below allow…9.8
- CVE-2025-62370Alloy Core libraries at the root of the Rust Ethereum ecosys…7.5
- CVE-2025-62371OpenSearch Data Prepper as an open source data collector for…7.4
Are you affected by CVE-2025-62366?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
