patchminder
Proof of concept · GitHub CVE-2026-140010

Denial of servicein the html-minifier-next package.

Published 30 Nov 2026 · Updated 1 Dec 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
High 8.7
CVSSA severity score from 0 to 10. 9 and higher is critical. 4.0 · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.8% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 5.0.1, 9.1.2
In plain words

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.

What to do now
  • Upgrade html-minifier-next to 9.1.2 or later.
  • Upgrade html-minifier to 5.0.1 or later.
  • Upgrade html-minifier-next (npm) to 9.1.2 or later.
  • Upgrade html-minifier (npm) to 5.0.1 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
html-minifier-next
before 9.1.2
9.1.2
CVE record
html-minifier
3.1.1 to before 5.0.1
5.0.1
CVE record
html-minifier-next (npm)
before 9.1.2
9.1.2
GitHub advisory
html-minifier (npm)
3.1.1 to before 5.0.1
5.0.1
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 30 Nov 2026
    CVE ID reserved by GitHub_M.
  2. 30 Nov 2026
    Published in the CVE List.
  3. 1 Dec 2026
    CVE record last updated.
  4. 3 Dec 2026
    First public proof of concept on GitHub.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundgooglesky/CVE-2026-1400100 stars · created 3 Dec 2026html-minifier-next <= 9.1.1 quadratic regex backtracking (CVE-2026-140010, HIGH): long whitespace in a custom fragment or tagless ignore block makes minify() occupy a CPU core. Real-library differenti

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Same weakness: Regular expression denial of service

All CWE-1333 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-140010: Denial of service in the html-minifier-next package. https://patchminder.com/cve/cve-2026-140010/ (accessed 5 December 2026).