All reports
Medium

sanitize-html is vulnerable to XSS through incomprehensive sanitization

Affected versions

Affected versions
< 2.0.0-beta
Fixed version
2.0.0-beta

Exploitation

CVE-2019-25225

Probability of exploitation in the next 30 days: 0.28%

FIRST EPSS · 2026-11-24

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.

Links