Skip to main content

Inefficient Regular Expression Complexity in html-minifier

CVE-2022-37620

  • html-minifier
  • org.webjars.npm:html-minifier
Severity High
Score 7.5/10

Summary

A Regular Expression Denial of Service (ReDoS) flaw was found in html-minifier versions 2.1.0 through 4.0.0 via the "candidate" variable in "htmlminifier.js".

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • HIGH

CWE-1333 - Inefficient Regular Expression Complexity

The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.

Advisory Timeline

  • Published