CVE-2019-25225
sanitize-html is vulnerable to XSS through incomprehensive sanitization
6.1
MEDIUM
CVSS 3.1
EPSS 0.08%
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.
How to fix CVE-2019-25225
To remediate CVE-2019-25225, upgrade the affected package to a fixed version below.
- —upgrade to 2.0.0-beta or later
Is CVE-2019-25225 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- from 0, < 2.0.0-beta
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |