CVE Professor
/
All CVEs
CVE-2026-140010

CVE-2026-140010 — Html-minifier-next — CWE-1333

HIGH CVSS 8.7 ⚡ EPSS 0.5% GitHub

## Summary html-minifier-next finds the last HTML tag inside htmlmin:ignore blocks with the expression /[\s\S]*<(\/?[a-zA-Z][\w:-]*)/. A large ignore block without a matching tag makes the greedy prefix rescan the content, so the public minify() API takes about 89 seconds for 256 KB. A second expression with the same flaw, `/^(\s*)[\s\S]?(\s)$/`, splits whitespace off matches of `ignoreCustomFragments`. A long whitespace run inside such a fragment triggers it with default options, since the default fragments cover `<? … ?>` and `<% … %>` (64 KB: about 3.3 s). ## Affected component and version - Repository: `j9t/html-minifier-next` - Affected version(s): Affected version(s): all releases up to and including 9.1.1 - Component: src/htmlminifier.js:691 (`RE_LAST_HTML_TAG`), :1795 (exec on `htmlmin:ignore` content, requires `collapseWhitespace`); src/htmlminifier.js:1279 (whitespace split of `ignoreCustomFragments` matches, default options) - Status: the vulnerable expression is present at the referenced revision; no fix was identified at the time of reporting. html-minifier is affected as well: The custom-fragment issue dates back to html-minifier 3.1.1, and 5.0.0, rebuilt on HTML Minifier Next 9.1.1, carries both. ## Reproduction input minify() on a document containing a large htmlmin:ignore block whose content is plain text with no '<tag' terminator (N=256000 characters). ## Measured timings The following values were measured against the real code path described ab

## Summary html-minifier-next finds the last HTML tag inside htmlmin:ignore blocks with the expression /[\s\S]*<(\/?[a-zA-Z][\w:-]*)/. A large ignore block without a matching tag makes the greedy prefix rescan the content, so the public minify() API takes about 89 seconds for 256 KB. A second expression with the same flaw, `/^(\s*)[\s\S]?(\s)$/`, splits whitespace off matches of `ignoreCustomFragments`. A long whitespace run inside such a fragment triggers it with default options, since the default fragments cover `<? … ?>` and `<% … %>` (64 KB: about 3.3 s). ## Affected component and version - Repository: `j9t/html-minifier-next` - Affected version(s): Affected version(s): all releases up to and including 9.1.1 - Component: src/htmlminifier.js:691 (`RE_LAST_HTML_TAG`), :1795 (exec on `htmlmin:ignore` content, requires `collapseWhitespace`); src/htmlminifier.js:1279 (whitespace split of `ignoreCustomFragments` matches, default options) - Status: the vulnerable expression is present at the referenced revision; no fix was identified at the time of reporting. html-minifier is affected as well: The custom-fragment issue dates back to html-minifier 3.1.1, and 5.0.0, rebuilt on HTML Minifier Next 9.1.1, carries both. ## Reproduction input minify() on a document containing a large htmlmin:ignore block whose content is plain text with no '<tag' terminator (N=256000 characters). ## Measured timings The following values were measured against the real code path described ab

CVSS v4.0 Vector Metrics
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
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. None AT:N
Privileges Req. None PR:N
User Interaction None UI:N
Vuln. Conf. None VC:N
Vuln. Integrity None VI:N
Vuln. Avail. High VA:H
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
EPSS — Exploit Prediction Scoring System
0.5%
30-day probability
In the 43. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-140010
CVSS 8.7/10 · HIGH · 30.11.2026
CWE: CWE-1333
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
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Summary: ## Summary

html-minifier-next finds the last HTML tag inside htmlmin:ignore blocks with the expression /[\s\S]<(\/?[a-zA-Z][\w:-])/. A large ignore block without a matching tag makes the greedy prefix rescan the content, so the public minify() API takes about 89 seconds for 256 KB. A second expression with the same flaw, /^(\s*)[\s\S]?(\s)$/, splits whitespace off matches of `ignoreCustomF…
Affected: html-minifier-next, html-minifier

⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · no user interaction (UI:N) · low attack complexity (AC:L).

🌍 REAL WORLD IMPACT
Partial confidentiality disclosure (C:L); service can be completely taken down.

🛡️ REMEDIATION
→ Apply vendor security update for html-minifier-next.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
⚠️ This week (7 days) — High risk, anonymous remote.

────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
8.7 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-1333
Affected Products (2)
html-minifier-next html-minifier
References & Advisories (4)
Related CVEs
9.3
CVE-2026-144337
osTicket before 1.17.9 and 1.18.0 before 1.18.5 contains an unauthenticated stored cross-site scripting vulner
9.0
CVE-2026-136364
Joomla Extension - joomboost.com - Unrestricted file upload in JoomMedia extension 1.0.0-6.1.5 - The upload fu
9.0
CVE-2026-145039
SiYuan before 3.8.11 contains a stored cross-site scripting vulnerability in the protyle asset picker's render
8.9
CVE-2026-144591
PhpSpreadsheet through 5.12.0 contains a server-side request forgery vulnerability that allows attackers to re
8.7
CVE-2026-144574
geopy through 2.5.0 contains a regular expression denial of service vulnerability in Point.from_string() that
7.1
CVE-2026-144951
Sync-in Server 2.4.0 before 2.6.1 contains a regular expression denial of service vulnerability that allows au
6.9
CVE-2026-144569
NervJS taro-css-to-react-native through 4.3.3 contains a regular expression denial of service vulnerability in