CVE-2022-37620
kangax 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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
A Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 because of the reCustomIgnore regular expression.
- Record
CVE-2022-37620- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
CVE List
7.5
A Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 because of the reCustomIgnore regular expression.
- Record
CVE-2022-37620- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333
- Updated
- 2026-11-02
EUVDEUVD-2022-7144
7.5
A Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 because of the reCustomIgnore regular expression.
- Record
EUVD-2022-7144- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-pfq8-rq6v-vf5m
8.7
kangax 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.
- Record
GHSA-pfq8-rq6v-vf5m- CVSS 4.0
- 8.7 High
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 - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400, CWE-1333
- Updated
- 2026-11-02
OSV
7.5
A Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 because of the reCustomIgnore regular expression.
- Record
CVE-2022-37620- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVGHSA-pfq8-rq6v-vf5m
8.7
kangax 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.
- Record
GHSA-pfq8-rq6v-vf5m- CVSS 4.0
- 8.7 High
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 - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-1333, CWE-400
- Updated
- 2026-11-02
Show 4 moreShow less
OSVCLSA-2026-1774657356 No score
TuxCare security update for html-minifier (1 CVE)
TuxCare rebuilt html-minifier to address 1 CVE. Fixed in 3.5.21-tuxcare.1.
- Record
CLSA-2026-1774657356- Updated
- 2026-11-02
OSVCLSA-2026-1792745496 No score
TuxCare security update for html-minifier (1 CVE)
TuxCare rebuilt html-minifier to address 1 CVE. Fixed in 4.0.0-tuxcare.1.
- Record
CLSA-2026-1792745496- Updated
- 2026-11-02
OSVCLSA-2026-1793867521 No score
TuxCare security update for html-minifier (1 CVE)
TuxCare rebuilt html-minifier to address 1 CVE. Fixed in 3.5.21-tuxcare.3.
- Record
CLSA-2026-1793867521- Updated
- 2026-11-05
OSVROOT-APP-NPM-CVE-2022-37620 No score
CVE-2022-37620 in @rootio/html-minifier - Patched by Root
Root has patched CVE-2022-37620 in the @rootio/html-minifier package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2022-37620- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
html-minifiernpm |
through 4.0.0 | None known |
html-minifierTuxCare:npm |
3.5.21-tuxcare.0 up to 3.5.21-tuxcare.1, plus listed versions 3.5.21 |
3.5.21-tuxcare.1 |
html-minifierTuxCare:npm |
4.0.0-tuxcare.0 up to 4.0.0-tuxcare.1, plus listed versions 4.0.0 |
4.0.0-tuxcare.1 |
html-minifierTuxCare:npm |
3.5.21-tuxcare.0 up to 3.5.21-tuxcare.3, plus listed versions 3.5.213.5.21-tuxcare.13.5.21-tuxcare.2 |
3.5.21-tuxcare.3 |
@rootio/html-minifierRoot:npm |
before 3.5.21-root.io.1 | 3.5.21-root.io.13.5.21-root.io.2 |
html-minifierRoot:npm |
before 3.5.21-aikido.2 | 3.5.21-aikido.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases, facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-37620 is a high vulnerability (CVSS 7.5) in Kangax Html-minifier, published October 31, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.35%, the 71st percentile. Fixed in html-minifier 3.5.21-tuxcare.1.
References
github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js
github.com/kangax/html-minifier/issues/1135
security.snyk.io/vuln/SNYK-JS-HTMLMINIFIER-3091181
nvd.nist.gov/vuln/detail/CVE-2022-37620
github.com/advisories/GHSA-pfq8-rq6v-vf5m
github.com/CVEProject/cvelistV5/tree/main/cves/2022/37xxx/CVE-2022-37620.json
github.com/kangax/html-minifier