`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.
History

Tue, 09 Sep 2025 00:30:00 +0000

Type Values Removed Values Added
Title sanitize-html: sanitize-html cross site scripting
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 08 Sep 2025 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 08 Sep 2025 15:30:00 +0000

Type Values Removed Values Added
First Time appeared Apostrophecms
Apostrophecms sanitize-html
Vendors & Products Apostrophecms
Apostrophecms sanitize-html

Mon, 08 Sep 2025 10:15:00 +0000

Type Values Removed Values Added
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.
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: Checkmarx

Published: 2025-09-08T10:02:42.945Z

Updated: 2025-09-08T15:18:19.841Z

Reserved: 2025-09-05T16:03:18.243Z

Link: CVE-2019-25225

cve-icon Vulnrichment

Updated: 2025-09-08T15:17:13.503Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-09-08T10:15:33.440

Modified: 2025-09-08T16:25:38.810

Link: CVE-2019-25225

cve-icon Redhat

Severity : Moderate

Publid Date: 2025-09-08T10:02:42Z

Links: CVE-2019-25225 - Bugzilla