CVE-2022-37620
Terser Html-minifier-terser vulnerability
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
Html-minifier-terser, Html-minifier. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Terser Html-minifier-terser runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/kangax/html-minifier/issues/1135 · Mitigation
- github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlmini
- github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlmini
- security.snyk.io/vuln/SNYK-JS-HTMLMINIFIER-3091181
- nvd.nist.gov/vuln/detail/CVE-2022-37620
- github.com/advisories/GHSA-pfq8-rq6v-vf5m
- nvd.nist.gov/vuln/detail/CVE-2022-37620
- cve.org/CVERecord?id=CVE-2022-37620
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.