CVE-2026-140010
8.7HighPublished Nov 30, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
High
0CVSS v4.010
- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User action
- None
- Impact
- High impact on availability
- Weakness
- CWE-1333
What an attacker gets
Unauthenticated attackers can trigger a denial-of-service by causing high CPU usage. They only need to send a specially crafted HTML payload to an application using the vulnerable minifier.
Root cause
The minify() function uses inefficient regular expressions that are susceptible to catastrophic backtracking when processing specific long HTML fragments.
Affected versions
- html-minifier-next prior to
9.1.2 - html-minifier
3.1.1through5.0.0
CVSS v4.0 · 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Fix & remediation
Upgrade to html-minifier-next 9.1.2 or html-minifier 5.0.1. If you cannot update immediately, disable the collapseWhitespace option in your minifier configuration.
$ npm install html-minifier-next@latestAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD 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.
References
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-759388.8HighAttackers with code execution on a newly provisioned PowerVS worker can steal an IBM IAM bearer token embedded in user-data. This allows them to escalate privileges and manipulate all infrastructure managed by that API key.
- CVE-2026-1400169.1CriticalUnauthenticated remote attackers can crash the server or duplicate application messages. This requires no user interaction or authentication.
- CVE-2026-1400157.5HighUnauthenticated remote attackers can crash your service by exhausting memory. They only need to send a stream of bytes after a WebSocket close frame to trigger the leak.
- CVE-2026-1400117.5HighUnauthenticated remote attackers can trigger a denial of service via memory exhaustion. They do this by sending highly compressible WebSocket messages that bypass configured size limits.
- CVE-2026-1400097.5HighRemote attackers can crash your Node.js application by sending a flood of Ping frames. This causes the process to exhaust memory by buffering unconstrained Pong responses.
- CVE-2026-1400088.7HighRemote attackers can cause a denial of service by blocking the JavaScript event loop. They only need to supply specially crafted, long wildcard-only glob patterns to the application.