insane vulnerable to Regular Expression Denial of Service
Date: 2024-10
Affected: npm/insane
Attack vector: dos
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2020-26303
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)

insane is a whitelist-oriented HTML sanitizer. Versions 2.6.2 and prior contain one or more regular expressions that are vulnerable to Regular Expression Denial of Service (ReDoS). As of time of publication, no known patches are available.


Mitigations:

Architectural layers (MAESTRO):