{"id":"ghsa-ghsa-9wmg-23wv-h297","seq":12154391,"kind":"advisory","title":"HTML Minifier Next: Regular expressions in `minify()` cause O(n²) backtracking on ignored and custom-fragment content","url":"https://github.com/advisories/GHSA-9wmg-23wv-h297","permalink":"https://vulnpulse.app/items/ghsa-ghsa-9wmg-23wv-h297","summary":"影響: npm:html-minifier-next <= 9.1.1 → 9.1.2, npm:html-minifier >= 3.1.1, < 5.0.1 → 5.0.1\nhtml-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) -…","severity":"high","cvss":null,"techs":["nodejs"],"cves":["CVE-2026-140010"],"tags":["GHSA-9wmg-23wv-h297","html-minifier-next","html-minifier"],"source":{"id":"ghsa","name":"GitHub Advisory Database"},"published_at":"2026-12-01T17:56:57.000Z","fetched_at":"2026-12-01T21:20:51.440Z"}