CVE-2019-25225: apostrophecms sanitize-html Cross-site Scripting
Vulnerability summary
CVE-2019-25225 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in apostrophecms sanitize-html. EPSS estimates a 0.27% chance of exploitation in the next 30 days, higher than 17.9% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 08-09-2025PublishedVulnerability first disclosed.
- 08-09-2025Last modifiedVulnerability information updated.
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 metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · NpmEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.27%
Chance of exploitation in the next 30 days
Percentile
18%
Versus all other CVEs
30-day change
0.00 pp
From 0.27% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundVulnerabilities Proofs Of Concept
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Apostrophecms1 product
- sanitize-html< 2.0.0
Npm1 product
- sanitize-html< 2.0.0-beta
Ubuntu1 product
- node-sanitize-htmlAll versions (No fix recorded)
3 vendors · 3 products
References
8 links- github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225ExploitREPORTWEBThird Party Advisory