NetSight
high7.5

CVE-2022-25887

Sanitize-html Vulnerable To REDoS Attacks

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
npmsanitize-html< 2.7.12.7.1

Affected products

VendorProductAffected versions
ApostrophecmsSanitize-Html
before 2.7.1

Weakness classification

References