SCA: security update for mailgen (GHSA-q4w9-x3rv-4c8j)

medium Tenable Self-Hosted Container Security Plugin ID 435635

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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.
(CVE-2025-62380)

See Also

https://github.com/advisories/GHSA-q4w9-x3rv-4c8j

Plugin Details

Severity: Medium

ID: 435635

Version: Revision 1.9

Type: Local

Family: SCA Checks

Published: 10/16/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 2.3

Percentile: 9.07

Vendor

Vendor Severity: Low

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.2

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2025-62380

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 6.3

Threat Score: 1.7

Threat Vector: CVSS:4.0/E:P

Vector: 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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 10/15/2025

Vulnerability Publication Date: 10/15/2025

Reference Information

CVE: CVE-2025-62380

cwe: CWE-79