{"id":"CVE-2019-25225","url":"https://www.cyber-defence.io/tools/cve/CVE-2019-25225","generatedAt":"2026-10-28T02:57:29.881Z","title":"`sanitize-html` prior to version 2.0.0-beta is vulnerable to Cross-site Scripting (XSS).","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.","published":"2025-09-08T10:15:33.000Z","lastModified":"2026-06-17T02:31:48.000Z","status":"Analyzed","sourceIdentifier":"596c5446-0ce5-4ba2-aa66-48b3b757a647","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"cwe":["CWE-79"],"affected":["apostrophecms/sanitize-html"],"epss":{"score":0.00269,"percentile":0.18858,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"low","text":"Lower severity and a low EPSS score (0.27%). Track it; it rarely justifies an emergency change on its own."},"changes":[],"references":[{"url":"https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225","tags":["Exploit","Third Party Advisory"],"source":"596c5446-0ce5-4ba2-aa66-48b3b757a647"},{"url":"https://github.com/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3","tags":["Patch"],"source":"596c5446-0ce5-4ba2-aa66-48b3b757a647"},{"url":"https://github.com/apostrophecms/sanitize-html/issues/293","tags":["Issue Tracking","Vendor Advisory"],"source":"596c5446-0ce5-4ba2-aa66-48b3b757a647"},{"url":"https://github.com/apostrophecms/sanitize-html/pull/156","tags":["Issue Tracking","Patch"],"source":"596c5446-0ce5-4ba2-aa66-48b3b757a647"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-25225","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}