ZeroDay Brief
CVE-2026-140010 Exploit code public

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
More from this vendor

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.

CWE-1333

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.

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.

References 2

  • github.com /j9t/html-minifier-next/security/advisories/GHSA-9wmg-23wv-h297
  • github.com /j9t/html-minifier-next/commit/28417322a9b0291de8b0d1c0694e09855d925545

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”