{"id":"CVE-2019-25225","details":"`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.","aliases":["GHSA-qhxp-v273-g94h"],"modified":"2026-08-07T14:53:18.892391Z","published":"2025-09-08T10:15:33.440Z","references":[{"type":"REPORT","url":"https://github.com/apostrophecms/sanitize-html/issues/293"},{"type":"FIX","url":"https://github.com/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3"},{"type":"FIX","url":"https://github.com/apostrophecms/sanitize-html/pull/156"},{"type":"EVIDENCE","url":"https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/apostrophecms/apostrophe","events":[{"introduced":"0"},{"fixed":"f8fec4d500f7875e716223578beb5b2f3afaff09"}],"database_specific":{"source":"CPE_RANGE","cpe":"cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.0.0"}]}}],"versions":["0.6.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-25225.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/apostrophecms/sanitize-html","events":[{"introduced":"0"},{"fixed":"ca28bcd95a9bfd2e1ea31bb9e7e5901f9078e875"},{"fixed":"712cb6895825c8bb6ede71a16b42bade42abcaf3"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"2.0.0"}],"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*"}}],"versions":["1.27.4","1.22.0","1.21.1","1.21.0","1.20.0","1.19.3","1.19.2","1.19.1","1.19.0","1.18.5","1.18.4","1.18.3","1.18.2","1.11.4","1.11.1","1.11.0","1.10.1","v1.9.0","v1.8.0","v1.7.2","v1.7.1","v1.7.0","v1.5.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-25225.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}