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 expression.
Configurations

Configuration 1 (hide)

cpe:2.3:a:terser:html-minifier-terser:*:*:*:*:*:node.js:*:*

Configuration 2 (hide)

cpe:2.3:a:kangax:html-minifier:*:*:*:*:*:node.js:*:*

History

01 Jun 2025, 14:15

Type Values Removed Values Added
References
  • () https://security.snyk.io/vuln/SNYK-JS-HTMLMINIFIER-3091181 -
Summary (en) A Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 via the candidate variable in htmlminifier.js. (en) A Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 because of the reCustomIgnore regular expression.

06 May 2025, 16:15

Type Values Removed Values Added
References () https://github.com/kangax/html-minifier/issues/1135 - Issue Tracking, Third Party Advisory, Mitigation () https://github.com/kangax/html-minifier/issues/1135 - Issue Tracking, Mitigation, Third Party Advisory

02 May 2025, 17:34

Type Values Removed Values Added
CPE cpe:2.3:a:html-minifier_project:html-minifier:4.0.0:*:*:*:*:*:*:* cpe:2.3:a:terser:html-minifier-terser:*:*:*:*:*:node.js:*:*
cpe:2.3:a:kangax:html-minifier:*:*:*:*:*:node.js:*:*
First Time Terser html-minifier-terser
Terser
Kangax
Kangax html-minifier
References () https://github.com/kangax/html-minifier/issues/1135 - Issue Tracking, Third Party Advisory () https://github.com/kangax/html-minifier/issues/1135 - Issue Tracking, Third Party Advisory, Mitigation

21 Nov 2024, 07:15

Type Values Removed Values Added
References () https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L1338 - Product () https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L1338 - Product
References () https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L294 - Product () https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L294 - Product
References () https://github.com/kangax/html-minifier/issues/1135 - Issue Tracking, Third Party Advisory () https://github.com/kangax/html-minifier/issues/1135 - Issue Tracking, Third Party Advisory

04 Nov 2024, 16:52

Type Values Removed Values Added
References () https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L1338 - Exploit, Third Party Advisory () https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L1338 - Product
References () https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L294 - Exploit, Third Party Advisory () https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L294 - Product

08 Aug 2023, 14:22

Type Values Removed Values Added
CWE CWE-400 CWE-1333

01 Nov 2022, 17:59

Type Values Removed Values Added
CPE cpe:2.3:a:html-minifier_project:html-minifier:4.0.0:*:*:*:*:*:*:*
References (MISC) https://github.com/kangax/html-minifier/issues/1135 - (MISC) https://github.com/kangax/html-minifier/issues/1135 - Issue Tracking, Third Party Advisory
References (MISC) https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L1338 - (MISC) https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L1338 - Exploit, Third Party Advisory
References (MISC) https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L294 - (MISC) https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L294 - Exploit, Third Party Advisory
CWE CWE-400
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.5

31 Oct 2022, 12:58

Type Values Removed Values Added
New CVE

Information

Published : 2022-10-31 12:15

Updated : 2025-06-01 14:15


NVD link : CVE-2022-37620

Mitre link : CVE-2022-37620

CVE.ORG link : CVE-2022-37620


JSON object : View

Products Affected

kangax

  • html-minifier

terser

  • html-minifier-terser
CWE
CWE-1333

Inefficient Regular Expression Complexity