HTML Minifier Next: Regular expressions in `minify()` cause O(n²) backtracking on ignored and custom-fragment content
受影响
| 软件包 | 受影响版本 | 修复版本 |
|---|---|---|
| npm:html-minifier-next | <= 9.1.1 | 9.1.2 |
| npm:html-minifier | >= 3.1.1, < 5.0.1 | 5.0.1 |
html-minifier-next finds the last HTML tag inside htmlmin:ignore blocks with the expression /[\s\S] and (64 KB: about 3.3 s). Affected component and version - Repository: j9t/html-minifier-next - Affected version(s): Affected version(s): all releases up to and including 9.1.1 - Component: src/htmlminifier.js:691 (RE_LAST_HTML_TAG), :1795 (exec on htmlmin:ignore content, requires collapseWhitespace); src/htmlminifier.js:1279 (whitespace split of ignoreCustomFragments matches, default options) -…
在 X 上接收快讯漏洞利用、重大泄露和故障,附应对措施。
关注 @vulnpulse_app2026/12/02 02:56,GitHub Advisory Database 发布了“HTML Minifier Next: Regular expressions in `minify()` cause O(n²) backtracking on ignored and custom-fragment content”(类型:漏洞公告)。严重程度为“高危”(high)。相关技术:JavaScript / Node.js。CVE:CVE-2026-140010。