Vulnerability

CVE-2019-25225

mediumCVSS 3.1 6.1Published 8 Sep 2025

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Apostrophecms sanitize-html

Weakness type

References

  • github.com /Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019…
  • github.com /apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a…
  • github.com /apostrophecms/sanitize-html/issues/293
  • github.com /apostrophecms/sanitize-html/pull/156

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning