GitHub Advisoryadvisory · npm
GHSA-pfq8-rq6v-vf5m kangax html-minifier REDoS vulnerability
HIGH
Official page ↗
- Aliases
- CVE-2022-37620
- Ecosystem
- npm
- Packages
- html-minifier
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-1333, CWE-400
- Reviewed
- 2024-04-22
Affected packages
• npm html-minifier: <= 4.0.0 (no fix yet)
Description
A Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 because of the reCustomIgnore regular expression.
Related
Alias · CVE (1)
- CVE-2022-37620 A Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 because of the reCustomIgnore regular… vulnerability
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-37620 advisory
- https://github.com/kangax/html-minifier/issues/1135 web
- https://github.com/kangax/html-minifier package
- https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L1338 web
- https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L294 web
- https://security.snyk.io/vuln/SNYK-JS-HTMLMINIFIER-3091181 web