CVE-2025-62380
Last modified
CVE-2025-62380 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.31 contain an HTML injection vulnerability in plaintext emails generated with the generatePlaintext method when user generated content is supplied. EPSS estimates a 0.41% 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.31 contain an HTML injection vulnerability in plaintext emails generated with the generatePlaintext method when user generated content is supplied. The plaintext generation code attempts to strip HTML tags using a regular expression and then decodes HTML entities, but tags that include certain Unicode line separator characters are not matched and removed. These encoded tags are later decoded into valid HTML content, allowing unexpected HTML to remain in output intended to be plaintext. Projects are affected if they call Mailgen.generatePlaintext with untrusted input and then render or otherwise process the returned string in a context where HTML is interpreted. This can lead to execution of attacker supplied script in the victim’s browser. Version 2.0.32 fixes the issue.
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-62380?
How severe is CVE-2025-62380?
How do I fix CVE-2025-62380?
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-62374Parse Javascript SDK provides access to the powerful Parse S…6.4
- CVE-2025-62375go-witness and witness are Go modules for generating attesta…6.9
- CVE-2025-62376pwn.college DOJO is an education platform for learning cyber…9.5
- CVE-2025-62378CommandKit is the discord.js meta-framework for building Dis…6.1
- CVE-2025-62379Reflex is a library to build full-stack web apps in pure Pyt…3.1
- CVE-2025-6238The AI Engine plugin for WordPress is vulnerable to open red…8
- CVE-2025-62381sveltekit-superforms makes SvelteKit forms a pleasure to use…8.3
- CVE-2025-62382Frigate is a network video recorder (NVR) with realtime loca…7.7
- CVE-2025-62383SQL injection in Ivanti Endpoint Manager before version 2024…6.5
- CVE-2025-62384SQL injection in Ivanti Endpoint Manager before version 2024…6.5
- CVE-2025-62385SQL injection in Ivanti Endpoint Manager before version 2024…6.5
- CVE-2025-62386SQL injection in Ivanti Endpoint Manager before version 2024…6.5
Are you affected by CVE-2025-62380?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
