CVE-2022-37620
HIGH 7.5CVSS 3.1kangax html-minifier REDoS vulnerability
A Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 because of the reCustomIgnore regular expression.
- Published
- 31 Oct 2022
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-1333CWE-400
- Also known as
- GHSA-pfq8-rq6v-vf5m
- Sources
- NVDJSONOSV GHSA-pfq8-rq6v-vf5mJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | terser | html-minifier-tersercpe:2.3:a:terser:html-minifier-terser:*:*:*:*:*:node.js:*:* |
<= 7.2.0 | |
| NVD | kangax | html-minifiercpe:2.3:a:kangax:html-minifier:*:*:*:*:*:node.js:*:* |
<= 4.0.0 | |
| OSV | npm | html-minifier | <= 4.0.0 |
References
- https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L1338 · Product, WEB
- https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L294 · Product, WEB
- https://github.com/kangax/html-minifier/issues/1135 · Issue Tracking, Mitigation, Third Party Advisory, WEB
- https://security.snyk.io/vuln/SNYK-JS-HTMLMINIFIER-3091181 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-37620 · ADVISORY
- https://github.com/kangax/html-minifier · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 31 Oct 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 31 Oct 2022)