{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2019-25225","id":"CVE-2019-25225","title":"sanitize-html is vulnerable to XSS through incomprehensive sanitization","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.","descriptionLong":"`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:02:42.945Z","updated":"2026-10-24T10:47:43.465772657Z","reserved":"2025-09-05T16:03:18.243Z","status":"Analyzed","rejected":false,"assigner":"Checkmarx","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"Checkmarx"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"Checkmarx"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"596c5446-0ce5-4ba2-aa66-48b3b757a647"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["sanitize-html"],"affectedProducts":[{"vendor":"","product":"sanitize-html","defaultStatus":"unaffected","versions":[{"lessThan":"2.0.0-beta","status":"affected","version":"0","versionType":"npm"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"sanitize-html","purl":"pkg:npm/sanitize-html","ranges":["<2.0.0-beta"],"fixed":["2.0.0-beta"],"advisory":"GHSA-qhxp-v273-g94h"}],"cwes":["CWE-79"],"aliases":["GHSA-qhxp-v273-g94h"],"references":[{"url":"https://github.com/apostrophecms/sanitize-html/issues/293","tags":["issue-tracking","Issue Tracking","Vendor Advisory","report","web"]},{"url":"https://github.com/apostrophecms/sanitize-html/pull/156","tags":["Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3","tags":["patch","Patch","fix","web"]},{"url":"https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225","tags":["exploit","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-25225","tags":["advisory"]},{"url":"https://github.com/apostrophecms/sanitize-html","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.0028,"epssPercentile":0.20718,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2019-25225","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-25225","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2019-25225","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-qhxp-v273-g94h","ok":true,"note":"GHSA-qhxp-v273-g94h"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2019-25225","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}