CVE-2019-25225

Published Sep 8, 2025

Last updated 5 months ago

Overview

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.
Source
596c5446-0ce5-4ba2-aa66-48b3b757a647
NVD status
Analyzed
Products
sanitize-html

Risk scores

CVSS 3.1

Type
Secondary
Base score
6.1
Impact score
2.7
Exploitability score
2.8
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Severity
MEDIUM

Weaknesses

596c5446-0ce5-4ba2-aa66-48b3b757a647
CWE-79

Social media

Hype score
Not currently trending

Configurations