{"id":"CVE-2019-25225","state":"PUBLISHED","title":"`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","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.","publishedAt":"2025-09-08T10:02:42.945Z","updatedAt":"2025-09-08T15:18:19.841Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"Checkmarx"},"assigner":"Checkmarx","products":["sanitize-html"],"affected":[{"packageName":"sanitize-html","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.0.0-beta","versionType":"npm"}],"collectionURL":"https://registry.npmjs.org"}],"references":["https://github.com/apostrophecms/sanitize-html/issues/293","https://github.com/apostrophecms/sanitize-html/pull/156","https://github.com/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3","https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T19:45:53.332Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2019/25xxx/CVE-2019-25225.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2019-25225","state":"PUBLISHED","datePublished":"2025-09-08T10:02:42.945Z","dateUpdated":"2025-09-08T15:18:19.841Z","assignerShortName":"Checkmarx","assignerOrgId":"596c5446-0ce5-4ba2-aa66-48b3b757a647","dateReserved":"2025-09-05T16:03:18.243Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"`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."}],"affected":[{"packageName":"sanitize-html","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.0.0-beta","versionType":"npm"}],"collectionURL":"https://registry.npmjs.org"}],"references":[{"url":"https://github.com/apostrophecms/sanitize-html/issues/293","tags":["issue-tracking"]},{"url":"https://github.com/apostrophecms/sanitize-html/pull/156"},{"url":"https://github.com/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3","tags":["patch"]},{"url":"https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225","tags":["exploit"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"Checkmarx","orgId":"596c5446-0ce5-4ba2-aa66-48b3b757a647","dateUpdated":"2025-09-08T10:02:42.945Z"},"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-09-08T15:17:07.822892Z","id":"CVE-2019-25225","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-09-08T15:18:19.841Z"}}]}}}