PT-2026-164399
CVE-2026-140010
·
Published
2026-11-30
·
Updated
2026-12-01
Description by
CVSS 4.0
8.7
HighMetricsAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions
html-minifier-next versions prior to 9.1.2
html-minifier versions 3.1.1 through 5.0.1
Description
The
minify() function in src/htmlminifier.js uses ambiguous regular expressions that can repeatedly rescan ignored or custom-fragment content. When collapseWhitespace is enabled, a long htmlmin:ignore block without a matching tag or a long whitespace run in a default custom fragment can trigger quadratic regular-expression backtracking. This process can occupy a CPU core for seconds or minutes, leading to a denial of service.Recommendations
Update html-minifier-next to version 9.1.2 or later.
Update html-minifier to version 5.0.1 or later.
Found an issue in the description? Have something to add? Feel free to write us 👾