{"id":"CVE-2019-25225","aliases":["GHSA-qhxp-v273-g94h"],"url":"https://o3.security/vulnerability/CVE-2019-25225","summary":"sanitize-html is vulnerable to XSS through incomprehensive sanitization","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.","published":"2025-09-08T10:15:33.440Z","modified":"2026-08-07T14:53:18.892391Z","cvss":{"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"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"sanitize-html","fixedVersion":"2.0.0-beta"}],"fix":{"url":"https://github.com/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3","label":"apostrophecms/sanitize-html@712cb68"},"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"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-25225"},{"type":"PACKAGE","url":"https://github.com/apostrophecms/sanitize-html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T14:53:18.892391Z"}}