CVE-2019-25225
MEDIUM EPSS 16.3%
Published Sep 8, 20259mo ago · Modified Jun 17, 20262w ago
6.1 CVSS 3.1
Published Sep 8, 2025 9mo ago
Last Modified Jun 17, 2026 2w ago
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.
CVSS Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction Required
Scope Changed
Confidentiality Low
Integrity Low
Availability None
Threat Intelligence
EPSS Exploit Probability
16.3% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available
Weaknesses 1
CWE-79 Cross-site Scripting Injection
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| apostrophecms | sanitize-html | * | <2.0.0 |
References 4
- github.com https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225
- github.com https://github.com/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3
- github.com https://github.com/apostrophecms/sanitize-html/issues/293
- github.com https://github.com/apostrophecms/sanitize-html/pull/156
Remediation
- github.com https://github.com/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3
- github.com https://github.com/apostrophecms/sanitize-html/pull/156