Denial of servicein the html-minifier-next package.
Proof of concept public (GitHub).
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.
- 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.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 30 Nov 2026CVE ID reserved by GitHub_M.
- 30 Nov 2026Published in the CVE List.
- 1 Dec 2026CVE record last updated.
- 3 Dec 2026First public proof of concept on GitHub.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.
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.
Report a link
Same weakness: Regular expression denial of service
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
Patchminder. CVE-2026-140010: Denial of service in the html-minifier-next package. https://patchminder.com/cve/cve-2026-140010/ (accessed 5 December 2026).