CVE-2019-25225
Last modified
CVE-2019-25225 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. `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. EPSS estimates a 0.25% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Apostrophecms | Sanitize-Html | < 2.0.0 |
References
- https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225Exploit, Third Party Advisory
- https://github.com/apostrophecms/sanitize-html/issues/293Issue Tracking, Vendor Advisory
- https://github.com/apostrophecms/sanitize-html/pull/156Issue Tracking, Patch
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2019-25225?
How severe is CVE-2019-25225?
How do I fix CVE-2019-25225?
Are you affected by CVE-2019-25225?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
