VULNERABILITY INTELLIGENCE
CVE-2019-25225
CVSS score6.1 MEDIUM
EPSS probability0.27%
CISA KEVNot currently listed
Published2025-09-08
Last modified2026-06-17
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
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.
Weakness classification
- 596c5446-0ce5-4ba2-aa66-48b3b757a647: CWE-79
Primary references
- 596c5446-0ce5-4ba2-aa66-48b3b757a647 — Exploit, Third Party Advisory
- 596c5446-0ce5-4ba2-aa66-48b3b757a647 — Patch
- 596c5446-0ce5-4ba2-aa66-48b3b757a647 — Issue Tracking, Vendor Advisory
- 596c5446-0ce5-4ba2-aa66-48b3b757a647 — Issue Tracking, Patch