VDB
CVE-2019-25225
CVE-2019-25225
PUBLISHED
CVSS 6.099999904632568 MEDIUM
`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.
EPSS 0.27% · 18.8th percentile
Risk Scores
CVSS 3.1
6.099999904632568
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS Score
0.27%
18.8th percentile
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ubuntu:24.04:LTS | node-sanitize-html | 0, 2.8.0+~2.6.2-1 |
| Ubuntu:22.04:LTS | node-sanitize-html | 0, 2.6.1-1 |
| Ubuntu:25.10 | node-sanitize-html | 0, 2.14.0+~2.13.0-1 |
Timeline
- Sep 8, 2025 CVE Published
- Sep 8, 2025 EPSS Score
- Sep 8, 2025 PoC Published
- Sep 12, 2025 CVE Updated
- Sep 14, 2025 PoC Published
- Sep 16, 2025 EPSS Score
- Sep 23, 2025 EPSS Score
- Oct 1, 2025 EPSS Score
- Oct 8, 2025 EPSS Score
- Oct 16, 2025 EPSS Score
- Oct 23, 2025 EPSS Score
- Oct 31, 2025 EPSS Score
References
- https://ubuntu.com/security/CVE-2019-25225 third-party-advisory
- https://www.cve.org/CVERecord?id=CVE-2019-25225 third-party-advisory
- https://github.com/apostrophecms/sanitize-html/issues/293 third-party-advisory
- https://github.com/apostrophecms/sanitize-html/pull/156 third-party-advisory
- https://github.com/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3 third-party-advisory
- https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225 third-party-advisory