Skip to main content
CVE-2026-140010VulnerabilityPublished

`minify()` cause O(n²) backtracking · HTML Minifier Next: Regular expressions

Affects MicrosoftSource GCVE Database

0
Compare
Authoritative record:CVE-2026-140010· High 8.7

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

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 4.08.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
npmhtml-minifier-nextpkg:npm/html-minifier-nextOther threatsAffected
  • <9.1.2
Fixed in
  • 9.1.2
npmhtml-minifierpkg:npm/html-minifierOther threatsAffected
  • >=3.1.1 <5.0.1
Fixed in
  • 5.0.1

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.

References

Community reviews

Loading reviews…