← Back

CVE-2019-25225

nvd nist
Published: Sep 8, 2025Modified: Sep 19, 2025

JSON object

Loading...
6.1
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Exploitability: 2.8 / Impact: 2.7
Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647 (Secondary)

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.

Affected (1)

1 product
Sanitize Html
Configuration A
1 vulnerable
Vulnerable SoftwareAffected Versions
Before 2.0.0

References (4)

Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647
ExploitThird Party Advisory
Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647
Issue TrackingVendor Advisory
Source: 596c5446-0ce5-4ba2-aa66-48b3b757a647
Issue TrackingPatch

Timeline

No history available yet.