
Cloud Vulnerability DB
A community-led vulnerabilities database
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in kangax html-minifier version 4.0.0. The vulnerability, tracked as CVE-2022-37620, was identified in the candidate variable within the htmlminifier.js file. The issue was first reported on August 8, 2022 (CVE Mitre).
The vulnerability exists in the html-minifier library's handling of regular expressions, specifically involving the candidate variable in htmlminifier.js. This ReDoS flaw could potentially lead to catastrophic backtracking in the regular expression processing (GitHub Issue).
When exploited, this vulnerability can cause a Denial of Service condition through excessive CPU usage due to catastrophic backtracking in the regular expression processing. This can affect applications that use the html-minifier library for HTML content minimization (NVD).
The best practice for mitigation includes implementing proper regular expression patterns that avoid catastrophic backtracking. Developers are advised to follow regular expression best practices as outlined in security resources (GitHub Issue).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."