Mailgen: HTML injection vulnerability in plaintext e-mails
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| eladnava | mailgen | affected |
|
No data.
No data.
| Vendor | Product | Versions |
|---|---|---|
| Mailgen | Mailgen | — |
| Source | ID | Title |
|---|---|---|
EUVD |
EUVD-2025-30449 | Mailgen: HTML injection vulnerability in plaintext e-mails |
Github GHSA |
GHSA-j2xj-h7w5-r7vp | Mailgen: HTML injection vulnerability in plaintext e-mails |
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.612% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Mailgen
Mailgen mailgen |
|
| Vendors & Products |
Mailgen
Mailgen mailgen |
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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). | |
| Title | Mailgen: HTML injection vulnerability in plaintext e-mails | |
| Weaknesses | CWE-79 | |
| References |
| |
| Metrics |
cvssV4_0
|
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')