Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2022-37620

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-37620
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 18:26 UTC · Revision 1

Source evidence

CVE-2022-37620

core-osv · Original source

Published 31 Oct 2022, 00:00 UTC

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

osv:CVE-2022-37620
Complete source record
{
  "id": "480a59950ed8337ec41ae0231dc85401218dbf493eff4b8568ae77e39873815c",
  "url": "https://osv.dev/vulnerability/CVE-2022-37620",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2022-37620",
    "summary": "A Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 because of the reCustomIgnore regular expression.",
    "evidence": "osv:CVE-2022-37620",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-37620",
      "aliases": [
        "CVE-2022-37620",
        "GHSA-pfq8-rq6v-vf5m"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/kangax/html-minifier",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "4beb325eb01154a40c0cbebff2e5737bbd7071ab"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:kangax:html-minifier:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "4.0.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.0.0",
            "v3.5.21",
            "v3.5.20",
            "v3.5.19",
            "v3.5.18",
            "v3.5.17",
            "v3.5.16",
            "v3.5.15",
            "v3.5.14",
            "v3.5.13",
            "v3.5.12",
            "v3.5.11",
            "v3.5.10",
            "v3.5.9",
            "v3.5.8",
            "v3.5.7",
            "v3.5.6",
            "v3.5.5",
            "v3.5.4",
            "v3.5.3",
            "v3.5.2",
            "v3.5.1",
            "v3.5.0",
            "v3.4.4",
            "v3.4.3",
            "v3.4.2",
            "v3.4.1",
            "v3.4.0",
            "v3.3.3",
            "v3.3.2",
            "v3.3.1",
            "v3.3.0",
            "v3.2.3",
            "v3.2.0",
            "v3.1.1",
            "v3.1.0",
            "v3.0.3",
            "v3.0.2",
            "v3.0.1",
            "v3.0.0",
            "v2.1.7",
            "v2.1.6",
            "v2.1.5",
            "v2.1.4",
            "v2.1.3",
            "v2.1.2",
            "v2.1.1",
            "v2.1.0",
            "v2.0.0",
            "v1.5.0",
            "v1.4.0",
            "v1.3.1",
            "v1.3.0",
            "v1.2.0",
            "v1.1.1",
            "v1.0.1",
            "v1.0.0",
            "v0.8.1",
            "v0.8.0",
            "v0.7.2",
            "v0.7.1",
            "v0.7.0",
            "v0.6.9",
            "v0.6.8",
            "v0.6.7",
            "v0.6.6",
            "v0.6.5",
            "v0.6.4",
            "v0.6.3",
            "v0.6.2",
            "v0.6.1",
            "v0.5.6",
            "v0.5.5",
            "v0.5.4",
            "v0.5.3",
            "v0.5.2",
            "v0.5.1",
            "v0.5.0",
            "v0.4.5",
            "v0.4.4",
            "v0.4.3",
            "v0.4.2",
            "v0.4.1",
            "v0.4.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-37620.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/terser/html-minifier-terser",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "e2bc1937d17807310cc8f674a9a22b4cb96cd657"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:terser:html-minifier-terser:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "7.2.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v7.2.0",
            "v7.1.0",
            "v7.0.0",
            "v7.0.0-beta.0",
            "v7.0.0-alpha.2",
            "v7.0.0-alpha.1",
            "v7.0.0-alpha.0",
            "v6.1.0",
            "v6.0.2",
            "v6.0.1",
            "v6.0.0",
            "v5.1.1",
            "v5.1.0",
            "v5.0.5",
            "v5.0.4",
            "v5.0.3",
            "v5.0.2",
            "v5.0.1",
            "v5.0.0",
            "v4.0.0",
            "v3.5.21",
            "v3.5.20",
            "v3.5.19",
            "v3.5.18",
            "v3.5.17",
            "v3.5.16",
            "v3.5.15",
            "v3.5.14",
            "v3.5.13",
            "v3.5.12",
            "v3.5.11",
            "v3.5.10",
            "v3.5.9",
            "v3.5.8",
            "v3.5.7",
            "v3.5.6",
            "v3.5.5",
            "v3.5.4",
            "v3.5.3",
            "v3.5.2",
            "v3.5.1",
            "v3.5.0",
            "v3.4.4",
            "v3.4.3",
            "v3.4.2",
            "v3.4.1",
            "v3.4.0",
            "v3.3.3",
            "v3.3.2",
            "v3.3.1",
            "v3.3.0",
            "v3.2.3",
            "v3.2.0",
            "v3.1.1",
            "v3.1.0",
            "v3.0.3",
            "v3.0.2",
            "v3.0.1",
            "v3.0.0",
            "v2.1.7",
            "v2.1.6",
            "v2.1.5",
            "v2.1.4",
            "v2.1.3",
            "v2.1.2",
            "v2.1.1",
            "v2.1.0",
            "v2.0.0",
            "v1.5.0",
            "v1.4.0",
            "v1.3.1",
            "v1.3.0",
            "v1.2.0",
            "v1.1.1",
            "v1.0.1",
            "v1.0.0",
            "v0.8.1",
            "v0.8.0",
            "v0.7.2",
            "v0.7.1",
            "v0.7.0",
            "v0.6.9",
            "v0.6.8",
            "v0.6.7",
            "v0.6.6",
            "v0.6.5",
            "v0.6.4",
            "v0.6.3",
            "v0.6.2",
            "v0.6.1",
            "v0.5.6",
            "v0.5.5",
            "v0.5.4",
            "v0.5.3",
            "v0.5.2",
            "v0.5.1",
            "v0.5.0",
            "v0.4.5",
            "v0.4.4",
            "v0.4.3",
            "v0.4.2",
            "v0.4.1",
            "v0.4.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-37620.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:22.223638251Z",
      "provider": "osv",
      "references": [
        "https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L1338",
        "https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L294",
        "https://security.snyk.io/vuln/SNYK-JS-HTMLMINIFIER-3091181",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/37xxx/CVE-2022-37620.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-37620",
        "https://github.com/kangax/html-minifier/issues/1135"
      ],
      "provider_metadata": {
        "cna_assigner": "mitre",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/37xxx/CVE-2022-37620.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-37620",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 488400,
  "published_at": "2022-10-31T00:00:00+00:00"
}