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—
Product
Apostrophecms Sanitize-html
PublishedSep 8, 2025
First seenSep 8, 2025
Weakness typeCWE-79Cross-site scripting (XSS)
How to fix
Update
- apostrophecms sanitize-html2.0.0 or later
- sanitize-html2.0.0-beta or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| apostrophecms sanitize-html | v < 2.0.0 | 2.0.0 |
| sanitize-htmlnpm | v < 2.0.0-beta | 2.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.