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) -…
2026/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。