Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. mailgen
  4. ›
  5. CVE-2025-59526

CVE-2025-59526: Mailgen: HTML injection vulnerability in plaintext e-mails

September 22, 2025 (updated September 23, 2025)

An HTML injection vulnerability in plaintext emails generated by Mailgen has been discovered. Your project is affected if you use the Mailgen.generatePlaintext(email); method and pass in user-generated content. The issue was discovered and reported by Edoardo Ottavianelli (@edoardottt).

References

  • github.com/advisories/GHSA-j2xj-h7w5-r7vp
  • github.com/eladnava/mailgen
  • github.com/eladnava/mailgen/commit/741a0190ddae0f408b22ae3b5f0f4c3f5cf4f11d
  • github.com/eladnava/mailgen/security/advisories/GHSA-j2xj-h7w5-r7vp
  • nvd.nist.gov/vuln/detail/CVE-2025-59526

Code Behaviors & Features

Detect and mitigate CVE-2025-59526 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.30

Fixed versions

  • 2.0.30

Solution

Upgrade to version 2.0.30 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/mailgen/CVE-2025-59526.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 06 Oct 2025 00:19:05 +0000.