{"id":"GHSA-pfq8-rq6v-vf5m","summary":"kangax html-minifier REDoS vulnerability","details":"A Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 because of the reCustomIgnore regular expression.","aliases":["CVE-2022-37620"],"modified":"2026-09-10T03:49:46.643513657Z","published":"2022-10-31T19:00:36Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2024-04-22T23:06:37Z","nvd_published_at":"2022-10-31T12:15:00Z","cwe_ids":["CWE-1333","CWE-400"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-37620"},{"type":"WEB","url":"https://github.com/kangax/html-minifier/issues/1135"},{"type":"PACKAGE","url":"https://github.com/kangax/html-minifier"},{"type":"WEB","url":"https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L1338"},{"type":"WEB","url":"https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L294"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-HTMLMINIFIER-3091181"}],"affected":[{"package":{"name":"html-minifier","ecosystem":"npm","purl":"pkg:npm/html-minifier"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"4.0.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-pfq8-rq6v-vf5m/GHSA-pfq8-rq6v-vf5m.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V4","score":"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"}]}