What’s Vulnerable › Vulnerabilities
CVE-2022-37620
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-10-31 · updated 2026-06-17
- Weakness: CWE-1333
Description
A Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 because of the reCustomIgnore regular expression.
Affected products
- Kangax Html-Minifier: through 4.0.0
- Terser Html-Minifier-Terser: through 7.2.0
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://github.com/kangax/html-minifier/issues/1135
- https://security.snyk.io/vuln/SNYK-JS-HTMLMINIFIER-3091181
- 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://github.com/kangax/html-minifier/issues/1135
Get alerted when CVE-2022-37620 or the next vulnerability affects your stack