CVE-2025-59526
Last modified
CVE-2025-59526 is a low-severity vulnerability rated 2.7/10 on the CVSS scale. mailgen is a Node.js package that generates responsive HTML e-mails for sending transactional mail. Prior to version 2.0.30, there is an HTML injection vulnerability in plaintext e-mails generated by Mailgen. 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. Prior to version 2.0.30, there is an HTML injection vulnerability in plaintext e-mails generated by Mailgen. Projects are affected if the Mailgen.generatePlaintext(email) method is used and given user-generated content. This vulnerability has been patched in version 2.0.30. A workaround involves stripping all HTML tags before passing any content into Mailgen.generatePlaintext(email).
Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:L/E:U/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-59526?
How severe is CVE-2025-59526?
How do I fix CVE-2025-59526?
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-59516Missing authentication for critical function in Windows Stor…7.8
- CVE-2025-59517Improper access control in Windows Storage VSP Driver allows…7.8
- CVE-2025-59518In LemonLDAP::NG before 2.16.7 and 2.17 through 2.21 before …8
- CVE-2025-5952A vulnerability, which was classified as critical, has been …7.3
- CVE-2025-59524Horilla is a free and open source Human Resource Management …6.1
- CVE-2025-59525Horilla is a free and open source Human Resource Management …6.1
- CVE-2025-59527Flowise is a drag & drop user interface to build a customize…7.5
- CVE-2025-59528Flowise is a drag & drop user interface to build a customize…10
- CVE-2025-59529Avahi is a system which facilitates service discovery on a l…5.5
- CVE-2025-5953The WP Human Resource Management plugin for WordPress is vul…8.8
- CVE-2025-59530quic-go is an implementation of the QUIC protocol in Go. In …7.5
- CVE-2025-59531Argo CD is a declarative, GitOps continuous delivery tool fo…7.5
Are you affected by CVE-2025-59526?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
