Live threats

All CVEs / Apostrophecms

CVE-2022-25887Apostrophecms Sanitize-html

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.6%
probability of exploitation in 30 days · percentile 77
Auth required
No
Published
Aug 30, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Sanitize-html.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm sanitize-html < 2.7.1 2.7.1 npm install sanitize-html@2.7.1

Per OSV / GitHub Advisories (GHSA-cgfm-xwp7-2cvr). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
apostrophecmssanitize-html< 2.7.1

Official sources

References

Links published by the sources. Open them with care.