Read the docs
TI-2022-09444 Aliases CVE-2022-25887GHSA-cgfm-xwp7-2cvr

Regular expression denial of service (ReDoS) in sanitize-html

Priority LOW 36CWE-1333Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Partial Red Hat: 7 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-1333.

Summary

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.

Why it matters now

EPSS 0.01551 75th percentileScored 2026-11-07
Fix Partial sanitize-html: 2.7.1sanitize-html (npm): 2.7.1Red Hat: 1 advisoryRed Hat: 7 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—sanitize-htmlbefore 2.7.12.7.1Patch availableCNA
—sanitize-html (npm)before 2.7.12.7.1Patch availableGHSA-cgfm-xwp7-2cvr
  • sanitize-html Vendor— Affected before 2.7.1 Fixed in 2.7.1 Patch available CNA
  • sanitize-html (npm) Vendor— Affected before 2.7.1 Fixed in 2.7.1 Patch available GHSA-cgfm-xwp7-2cvr

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*before 2.7.1Vulnerableapostrophecms
  • cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:* Versions before 2.7.1 Vulnerable ·apostrophecms

Remediation

  • Fix · CNA sanitize-html Fixed in 2.7.1
  • Fix · GHSA-cgfm-xwp7-2cvr sanitize-html (npm) Fixed in 2.7.1 Advisory →

Red Hat 1 advisory

  • RHSA-2022:7313 Released 2022-11-02 · Red Hat rating Moderate
    Red Hat Advanced Cluster Management 2.6.2 security update and bug fixes
    • Red Hat Advanced Cluster Management for Kubernetes 2.6 for RHEL 8 rhacm2/acm-governance-policy-addon-controller-rhel8, rhacm2/acm-grafana-rhel8, rhacm2/acm-must-gather-rhel8 +45

Vendor assessments

Red Hat

Red Hat rating: Low. Red Hat's page for this CVE →

ProductStatusPlan or fix
OpenShift Service Mesh 2.0AffectedNo fix yet
OpenShift Service Mesh 2.1AffectedNo fix yet: Fix deferred
Red Hat Advanced Cluster Management for Kubernetes 2AffectedNo fix yet
Red Hat Ansible Automation Platform 2AffectedNo fix yet
Red Hat OpenShift Container Platform 3.11AffectedNo fix yet
Red Hat OpenShift Container Platform 4AffectedNo fix yet
Red Hat OpenShift Dev SpacesAffectedNo fix yet

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-25887
  2. 2026-10-03 Alias added: GHSA-cgfm-xwp7-2cvr

References

  • TI-2024-14258 Information disclosure in sanitize-html CVSS 3.1MEDIUM 5.3
  • TI-2026-29000 ApostropheCMS: sanitize-html allowedTags Bypass via Entity-Decoded Text in nonTextTags Elements CVSS 3.1MEDIUM 6.1
  • TI-2019-15279 Cross-site scripting in sanitize-html CVSS 3.1MEDIUM 6.1
  • TI-2014-08427 Cross-site scripting in sanitize-html CVSS 3.1MEDIUM 6.1
  • TI-2016-09355 sanitize-html before 1.4.3 has XSS. CVSS 3.1MEDIUM 6.1
  • TI-2021-08273 Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate the… CVSS 3.1MEDIUM 5.3
See all 7 →

Sources