CVE-2019-25225

Medium

Description

`sanitize-html` prior to version 2.0.0-beta is vulnerable to Cross-site Scripting (XSS). The `sanitizeHtml()` function in `index.js` does not sanitize content when using the custom `transformTags` option, which is intended to convert attribute values into text. As a result, malicious input can be transformed into executable code.

SeverityMedium
CVSS6.1
Exploit probability—
ProductApostrophecms Sanitize-html
PublishedSep 8, 2025
First seenSep 8, 2025

How to fix

Update
  • apostrophecms sanitize-html2.0.0 or later
  • sanitize-html2.0.0-beta or later

Affected products

ProductAffected versionsFixed in
apostrophecms sanitize-htmlv < 2.0.02.0.0
sanitize-htmlnpmv < 2.0.0-beta2.0.0-beta

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.

CVE-2019-25225 · Apostrophecms Sanitize-html · Dark Radar