SCA: security update for html-minifier, html-minifier-next (GHSA-9wmg-23wv-h297)

high Tenable Cloud Security Plugin ID 489500

Description

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

- HTML Minifier Next is a configurable HTML minifier and the enhanced successor to HTML Minifier. Prior to
html-minifier-next 9.1.2, and from html-minifier 3.1.1 until 5.0.1, minify() in src/htmlminifier.js uses
ambiguous regular expressions that can repeatedly rescan ignored or custom-fragment content. The
ignoreCustomFragments whitespace-splitting variant dates to html-minifier 3.1.1, while html-minifier 5.0.0
carries both that variant and the RE_LAST_HTML_TAG variant used for htmlmin:ignore content. With
collapseWhitespace enabled, a long htmlmin:ignore block without a matching tag reaches RE_LAST_HTML_TAG
when the ignore-block placeholder and intervening text are followed by a real element; independently, a
long whitespace run in a default custom fragment reaches the whitespace-splitting expression. Either form
can cause quadratic regular-expression backtracking and occupy a CPU core for seconds or minutes. This
issue is fixed in html-minifier-next 9.1.2 and html-minifier 5.0.1. (CVE-2026-140010)

Solution

Update the html-minifier library and its related packages to version 5.0.1 or later.

See Also

https://github.com/advisories/GHSA-9wmg-23wv-h297

Plugin Details

Severity: High

ID: 489500

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 12/2/2026

Updated: 12/2/2026

Risk Information

VPR

Risk Factor: Low

Score: 1.2

Percentile: 0.01

Vendor

Vendor Severity: High

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-2026-140010

CVSS v3

Risk Factor: Medium

Base Score: 4.7

Temporal Score: 4.1

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

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

CVSS v4

Risk Factor: High

Base Score: 8.7

Threat Score: 6.6

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:H/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 12/1/2026

Vulnerability Publication Date: 11/30/2026

Reference Information

CVE: CVE-2026-140010