Sanitize-html Vulnerable To REDoS Attacks
Date: 2022-08
Affected: npm/sanitize-html
Attack vector: dos
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2022-25887
CWE: CWE-1333
CVSS: 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)

The package sanitize-html before 2.7.1 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure global regular expression replacement logic of HTML comment removal.


Mitigations:

Architectural layers (MAESTRO):