Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. html-minifier
  4. ›
  5. CVE-2022-37620

CVE-2022-37620: kangax html-minifier REDoS vulnerability

October 31, 2022 (updated June 11, 2025)

A Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 because of the reCustomIgnore regular expression.

References

  • github.com/advisories/GHSA-pfq8-rq6v-vf5m
  • github.com/kangax/html-minifier
  • github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js
  • github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js
  • github.com/kangax/html-minifier/issues/1135
  • nvd.nist.gov/vuln/detail/CVE-2022-37620
  • security.snyk.io/vuln/SNYK-JS-HTMLMINIFIER-3091181

Code Behaviors & Features

Detect and mitigate CVE-2022-37620 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 4.0.0

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity
  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/html-minifier/CVE-2022-37620.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:32 +0000.