Home / eladnava / mailgen / CVE-2025-62380
CVE-2025-62380: is it exploited, and which versions of eladnava mailgen are affected and fixed?
CVE-2025-62380 is a cross-site scripting (XSS) vulnerability in eladnava mailgen. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: mailgen before 2.0.32 (GitHub advisory GHSA-q4w9-x3rv-4c8j). Fixed in 2.0.32 (GitHub advisory GHSA-q4w9-x3rv-4c8j). Severity: Low (2.9, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:16 UTC.
What is CVE-2025-62380?
Mailgen has HTML Injection and XSS Filter Bypass in Plaintext Emails
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.
From the CVE record by GitHub_M, last updated October 15, 2025, 17:15 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| eladnava | mailgen | < 2.0.32 |
As the CVE record by GitHub_M states it, last updated October 15, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | mailgen | < 2.0.32 | 2.0.32 | GHSA-q4w9-x3rv-4c8j |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 15, 2025. Summary: Mailgen has HTML Injection and XSS Filter Bypass in Plaintext Emails.
How severe is CVE-2025-62380?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 2.9 | CVSS 4.0 | 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 | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-62380 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, October 15, 2025)
- EPSS
- 0.45% probability of exploitation activity in the next 30 days, percentile 41.0 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-79 Improper Neutralization of Input During Web Page Generation
Where are the vendor advisories and references?
- https://github.com/eladnava/mailgen/security/advisories/GHSA-q4w9-x3rv-4c8j x_refsource_CONFIRM
- https://github.com/eladnava/mailgen/commit/7a791a424ff3a3f7783f8750919f1e98639924a8 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- October 10, 2025
- Published
- October 15, 2025, 16:52 UTC
- CVE record updated
- October 15, 2025, 17:15 UTC by GitHub_M
- NVD
- Deferred, last modified October 8, 2026, 11:10 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:16 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect mailgen?
- Oct 14, 2025CVE-2025-62366 eladnava mailgen: cross-site scripting (XSS)
- Sep 22, 2025CVE-2025-59526 eladnava mailgen: cross-site scripting (XSS)
Questions about CVE-2025-62380
Is CVE-2025-62380 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 0.45% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of eladnava mailgen are affected by CVE-2025-62380?
mailgen before 2.0.32, per the GitHub advisory GHSA-q4w9-x3rv-4c8j. The tables above give every range the sources list.
Which version fixes CVE-2025-62380?
2.0.32, per the GitHub advisory GHSA-q4w9-x3rv-4c8j. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-62380?
Low (2.9, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-62380?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.