CVE-2019-25225

sanitize-html: sanitize-html cross site scripting

Published Sep 8, 2025 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2019-19375 sanitize-html is vulnerable to XSS through incomprehensive sanitization
Github GHSA Github GHSA GHSA-qhxp-v273-g94h sanitize-html is vulnerable to XSS through incomprehensive sanitization
History
Type Values Removed Values Added
CPEs cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*
Type Values Removed Values Added
Title sanitize-html: sanitize-html cross site scripting
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Apostrophecms
Apostrophecms sanitize-html
Vendors & Products Apostrophecms
Apostrophecms sanitize-html
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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
Checkmarx
Published
Updated
Sep 8, 2025, 3:18 PM
Reserved
Sep 5, 2025, 4:03 PM
Status
Analyzed
Published
Sep 8, 2025, 10:15 AM
Modified
Jun 17, 2026, 2:31 AM
Severity
Moderate
Public date
Sep 8, 2025, 10:02 AM