CVE-2022-25887

Medium

Description

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.

SeverityMedium
CVSS5.3
Exploit probability—
ProductApostrophecms Sanitize-html
PublishedAug 30, 2022
First seenAug 30, 2022

How to fix

Update
  • apostrophecms sanitize-html2.7.1 or later
  • sanitize-html2.7.1 or later

Affected products

ProductAffected versionsFixed in
apostrophecms sanitize-htmlv < 2.7.12.7.1
sanitize-htmlnpmv < 2.7.12.7.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.