{"schemaVersion":3,"id":"CVE-2022-37620","aliases":["CGA-4rc5-45fp-4c7p","CGA-6r7p-p7rc-3qc4","CGA-p6qw-c75h-cjv9","GHSA-pfq8-rq6v-vf5m"],"status":"published","duplicateOf":null,"title":null,"description":"A Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 because of the reCustomIgnore regular expression.","dates":{"published":"2022-10-31T00:00:00.000Z","modified":"2025-06-01T13:26:16.095Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01167,"percentile":0.66892,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.01299999999999999,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01154},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01177,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01177,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01177,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01177,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01177,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01167,"percentile":0.66892}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01154,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01177,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01177,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01177,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01177,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01177,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01167,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01167,"percentile":0.66892}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity","description":"The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/1333.html"}],"affected":[{"vendor":"chainguard","product":"jitsucom-jitsu","name":"jitsucom-jitsu","label":"jitsucom-jitsu","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/jitsucom-jitsu","purlType":"apk","versions":[{"text":"< 2.8.4-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.8.4-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"jitsucom-jitsu-console","name":"jitsucom-jitsu-console","label":"jitsucom-jitsu-console","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/jitsucom-jitsu-console","purlType":"apk","versions":[{"text":"< 2.8.4-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.8.4-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"jitsucom-jitsu-rotor","name":"jitsucom-jitsu-rotor","label":"jitsucom-jitsu-rotor","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/jitsucom-jitsu-rotor","purlType":"apk","versions":[{"text":"< 2.8.4-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.8.4-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"jitsucom-jitsu","name":"jitsucom-jitsu","label":"jitsucom-jitsu","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/jitsucom-jitsu","purlType":"apk","versions":[{"text":"< 2.8.4-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.8.4-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"jitsucom-jitsu-console","name":"jitsucom-jitsu-console","label":"jitsucom-jitsu-console","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/jitsucom-jitsu-console","purlType":"apk","versions":[{"text":"< 2.8.4-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.8.4-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"jitsucom-jitsu-rotor","name":"jitsucom-jitsu-rotor","label":"jitsucom-jitsu-rotor","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/jitsucom-jitsu-rotor","purlType":"apk","versions":[{"text":"< 2.8.4-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.8.4-r0","eol":null,"hubHref":null},{"vendor":"kangax","product":"html-minifier","name":"html-minifier","label":"html-minifier","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 4.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 4.0.0","eol":null,"hubHref":"/vendor/kangax/html-minifier"},{"vendor":"Npm","product":"html-minifier","name":"html-minifier","label":"html-minifier","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/html-minifier","purlType":"npm","versions":[{"text":"≤ 4.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 4.0.0","eol":null,"hubHref":null},{"vendor":"terser","product":"html-minifier-terser","name":"html-minifier-terser","label":"html-minifier-terser","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 7.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 7.2.0","eol":null,"hubHref":"/vendor/terser/html-minifier-terser"}],"affectedCount":9,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L1338","label":"github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js","hostname":"github.com","tags":["WEB","Product"]},{"url":"https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L294","label":"github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js","hostname":"github.com","tags":["WEB","Product"]},{"url":"https://github.com/kangax/html-minifier/issues/1135","label":"github.com/kangax/html-minifier/issues/1135","hostname":"github.com","tags":["REPORT","WEB","Issue Tracking","Mitigation","Third Party Advisory"]},{"url":"https://security.snyk.io/vuln/SNYK-JS-HTMLMINIFIER-3091181","label":"security.snyk.io/vuln/SNYK-JS-HTMLMINIFIER-3091181","hostname":"security.snyk.io","tags":["WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/37xxx/CVE-2022-37620.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2022/37xxx/CVE-2022-37620.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-37620","label":"nvd.nist.gov/vuln/detail/CVE-2022-37620","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/kangax/html-minifier","label":"github.com/kangax/html-minifier","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-5J8M-J65X-F87G","CGA-MVV3-XJV4-W9GC"]},"timeline":[{"kind":"published","date":"2022-10-31T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-06-01T13:26:16.095Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T22:44:37.389Z","stale":false,"partial":false}}