Medium severity6.1OSV Advisory· Published Sep 8, 2025· Updated Jun 17, 2026
CVE-2019-25225
CVE-2019-25225
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
sanitize-htmlnpm | < 2.0.0-beta | 2.0.0-beta |
Affected products
2- Range: 1.10.1, 1.11.0, 1.11.1, …
Patches
Vulnerability mechanics
References
6- github.com/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3nvdPatchWEB
- github.com/apostrophecms/sanitize-html/pull/156nvdIssue TrackingPatchWEB
- github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225nvdExploitThird Party AdvisoryWEB
- github.com/advisories/GHSA-qhxp-v273-g94hghsaADVISORY
- github.com/apostrophecms/sanitize-html/issues/293nvdIssue TrackingVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2019-25225ghsaADVISORY
News mentions
0No linked articles in our index yet.