`minify()` cause O(n²) backtracking · HTML Minifier Next: Regular expressions
Affects MicrosoftSource GCVE Database
Not known to be exploited · CVSS 8.7 High · fixed in 9.1.2 : patch Microsoft soon.
Data as of 2 Dec 2026, 11:03 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 8.7 |
|---|
- Patch
- Available – fixed in 9.1.2, 5.0.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.
What to do
Upgrade html-minifier-next to 9.1.2; html-minifier to 5.0.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npmhtml-minifier-nextpkg:npm/html-minifier-nextOther threats | Affected
| Fixed in
|
npmhtml-minifierpkg:npm/html-minifierOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, users should consider avoiding or limiting the use of the minify() function on untrusted or large inputs that include ignored or custom-fragment content to reduce the risk of performance degradation.
Description
CVE-2026-140010 is a vulnerability in Microsoft HTML Minifier Next version 4.0 where regular expressions used in the minify() function cause O(n²) backtracking on ignored and custom-fragment content. This can lead to performance degradation due to inefficient regex processing.