SCA: security update for mailgen (GHSA-xw6r-chmh-vpmj)

medium Tenable Self-Hosted Container Security Plugin ID 435617

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.30 contain an HTML injection vulnerability in plaintext emails produced by
the generatePlaintext method when user‑generated content is supplied. The function attempts to remove HTML
tags, but if tags are provided as encoded HTML entities they are not removed and are later decoded,
resulting in active HTML (for example an img tag with an event handler) in the supposed plaintext output.
In contexts where the generated plaintext string is subsequently rendered as HTML, this can allow
execution of attacker‑controlled JavaScript. Versions 2.0.31 and later contain a fix. No known workarounds
exist. (CVE-2025-62366)

See Also

https://github.com/advisories/GHSA-xw6r-chmh-vpmj

Plugin Details

Severity: Medium

ID: 435617

Version: Revision 1.9

Type: Local

Family: SCA Checks

Published: 10/14/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-62366

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/14/2025

Vulnerability Publication Date: 10/14/2025

Reference Information

CVE: CVE-2025-62366

cwe: CWE-79