## HTML Minifier Next: Regular expressions in `minify()` cause O(n²) backtracking on ignored and custom-fragment content

- 種別: advisory
- 重大度: high
- 関連技術: nodejs
- CVE: CVE-2026-140010
- 公開日時: 2026-12-01T17:56:57.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-9wmg-23wv-h297)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-9wmg-23wv-h297

影響: 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) -…