SCA: security update for mailgen (GHSA-j2xj-h7w5-r7vp)

medium Tenable Self-Hosted Container Security Plugin ID 435393

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

See Also

https://github.com/advisories/GHSA-j2xj-h7w5-r7vp

Plugin Details

Severity: Medium

ID: 435393

Version: Revision 1.13

Type: Local

Family: SCA Checks

Published: 9/22/2025

Updated: 7/2/2026

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

Risk Information

VPR

Risk Factor: Low

Score: 1.2

Percentile: 0.01

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

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

CVSS Score Source: CVE-2025-59526

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.6

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

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

CVSS v4

Risk Factor: Medium

Base Score: 6.9

Threat Score: 2.7

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:L

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 9/22/2025

Vulnerability Publication Date: 9/22/2025

Reference Information

CVE: CVE-2025-59526

cwe: CWE-79