Bug 2397492 (CVE-2025-59526) - CVE-2025-59526 mailgen: Mailgen: HTML injection vulnerability in plaintext e-mails
Summary: CVE-2025-59526 mailgen: Mailgen: HTML injection vulnerability in plaintext e-...
Keywords:
Status: NEW
Alias: CVE-2025-59526
Product: Security Response
Classification: Other
Component: vulnerability-draft
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-22 20:01 UTC by OSIDB Bzimport
Modified: 2025-09-22 20:59 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-22 20:01:26 UTC
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).


Note You need to log in before you can comment on or make changes to this bug.