HTML Minifier Next is a configurable HTML minifier and the enhanced successor to HTML Minifier.
- CVSS
- 8.7High
- Chance of exploitation (EPSS)
- 0.77%
- Published
- Nov 30, 2026
- In the news
- 1 story
What to do
A serious security flaw in J9t Html-minifier and J9t Html-minifier-next that can be attacked over the network without logging in. Exploit code is public, so patch it soon.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Affected versions
- J9t Html-minifier
- >= 3.1.1, < 5.0.1
- J9t Html-minifier-next
- < 9.1.2
Description
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.
Affected products
Get alerts for these →Timeline 5
Latest change: googlesky/CVE-2026-140010: html-minifier-next (Dec 2, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Thu, Dec 3, 2026
- Exploit codegooglesky/CVE-2026-140010: html-minifier-nextGitHub (unverified) · 00:30 UTC
Wed, Dec 2, 2026
Tue, Dec 1, 2026
Mon, Nov 30, 2026
- CVECVE-2026-140010 published (CVSS 8.7)CVE Program · 21:44 UTC
Exploit code
Visit at your own risk. These are third-party sites we find automatically. We do not test, review or vouch for them, and fake proof-of-concept repositories sometimes contain malware.
- googlesky/CVE-2026-140010: html-minifier-next
GitHub, unverified · found Dec 3, 2026
References 2
- github.com /j9t/html-minifier-next/security/advisories/GHSA-9wmg-23wv-h297
- github.com /j9t/html-minifier-next/commit/28417322a9b0291de8b0d1c0694e09855d925545